摘要: 线段树。各种WA。最后过了,老泪纵横。View Code 1 #include <stdio.h> 2 #define MAXN 100001 3 int col[MAXN * 4],lazy[MAXN * 4]; 4 void update(int cur) 5 { 6 col[cur] = col[cur << 1] | col[cur << 1 | 1]; 7 } 8 9 void pushdown(int cur,int x,int y) 10 { 11 int mid = (x + y) >> 1,ls = cur << 1 阅读全文
posted @ 2012-07-15 17:19 浙西贫农 阅读(138) 评论(0) 推荐(0) 编辑