摘要:
http://poj.org/problem?id=1195简单二维线段树题。单点更新区间求和。My Code 1 #include <cstdio> 2 #include <algorithm> 3 using namespace std; 4 #define lson l,m,rt<<1 5 #define rson m+1,r,rt<<1|1 6 #define maxn 1024 7 int n; 8 struct node 9 {10 int setree1[maxn<<1];11 }setree[maxn<<1 阅读全文