摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1166线段树,单点更新 1 #include <stdio.h> 2 3 #define lson l, m, root<<1 4 #define rson m+1, r, root<<1|1 5 6 const int maxn = 55555; 7 8 int sum[maxn<<2]; 9 10 void push_up(int root)11 {12 sum[root] = sum[root<<1] + sum[root<<1|1 阅读全文
posted @ 2013-02-01 21:56
Yuan1991
阅读(129)
评论(0)
推荐(0)

浙公网安备 33010602011771号