摘要:
Stars 1 /* 2 写于13年3月21日 3 单点更新,区间求和,二维树状数组 4 输入x1,x2,y1,y2时,输成了x1,y1,x2,y2。调试了两个小时,汗! 5 6 注意:i=0||j=0时,lowbit()返回0 ,add()函数会进入死循环 7 所以数据输入后进行自加操作 8 */ 9 #include <iostream>10 #include <stdio.h>11 #include <string.h>12 using namespace std;13 const int maxn=1010;14 int tree[maxn][max 阅读全文