摘要: - -比赛时用了很奇怪的方法 然后最后评判TLE了。。。。 赛后中规中矩的用线段树过了#include #include #include #include using namespace std;int kn[300005], len[300005];struct segTree{ int l, r, va;} seg[300005>1; build(l,m,rt>1; if(lm) change(l,r,rt>1; if(xm) cg(x,rt<<1|1); seg[rt].va=0;}void update(int l,int r,int rt){ i... 阅读全文
posted @ 2013-10-16 10:46 Ink_syk 阅读(321) 评论(0) 推荐(0) 编辑