2012年8月13日
摘要:
线段树: 1 #include<cstdio> 2 #define INF 987654321 3 #define MAXN 200010 4 int tree[MAXN << 2]; 5 inline int MAX(int x, int y) { 6 return x > y ? x : y; 7 } 8 inline void PushUp(int rt) { 9 tree[rt] = MAX(tree[rt << 1], tree[rt << 1 | 1]);10 }11 void Build(int L, int R, int r 阅读全文
posted @ 2012-08-13 01:11
DrunBee
阅读(731)
评论(0)
推荐(0)
浙公网安备 33010602011771号