![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CodeVS
文章平均质量分 83
Flaze_
一只蒟蒻【扑通扑通跪laekov 扑通扑通跪yjqqqaq 扑通扑通跪mhy12345 扑通扑通跪zms_
展开
-
稍微码一下蒟蒻的链剖序+线段树 大概是模板吧……
二话不说上代码 这道题哒↓ CodeVS 2460 树的统计 BZOJ 1036: [ZJOI2008]树的统计Count #include #include #include using namespace std; int n,m; const int INF=0x3f3f3f3f; struct t1{ int to,nxt; }edge[60057]; int cnt_ed原创 2016-03-19 08:59:50 · 523 阅读 · 0 评论 -
丑的一笔的普通平衡树ver的splay
splay_Flaze ver1.0 常数大的飞起,代码丑得上天 BZOJ 3224 普通平衡树 CodeVS 4543 普通平衡树 从正式开始写平衡树到现在……Flaze码了无数遍rotate和splay(把节点转上去)【然而每次码完前两个之后就心灰意冷开始删档颓 于是今天花了一个晚自习终于过了普通平衡树感觉自己萌萌哒,尤其是回到教室一看发现竟然已经刷完了化学语文作业,瞬间原创 2016-04-15 23:10:45 · 646 阅读 · 0 评论 -
CodeVS 1107 等价表达式【NOIP2005】【模拟
…………我觉得吧,这题有毒 讲道理,括号都不能匹配的……拿头求值啊x 嗯反正带几个质数进去直接算一算 卡不掉的 ……我还是码力不够233333 #include #define MOD 99999989 #define MAXN 57 using namespace std; int n; int checker[4]={233,373,103,701}; int ans[4];原创 2016-10-16 21:15:41 · 650 阅读 · 0 评论 -
BZOJ 3083: 遥远的国度(codevs 4804)【链剖序+线段树
……喵的WA了两把,第一把是……倍增查询是否为lca的时候……忘记赋值anc[i][0] = father[i]了……………… 第二把……………………我……INF开小了…………GGGGGGG #include #define MAXN 100005 #define INF INT_MAX using namespace std; int n,m; inline int read(){ cha原创 2016-11-22 19:38:51 · 502 阅读 · 0 评论