摘要:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3623 简单二维树状数组题。单点询问,两种更新(按行或者按列)。直接用二维的线段树,最多将更新的区间划分为3个。代码如下:View Code 1 #include <cstdio> 2 #include <cstdlib> 3 #include <algorithm> 4 5 using namespace std; 6 7 const int size = 105; 8 9 struct BIT2D { 10 int key[size][ 阅读全文
posted @ 2012-11-05 12:10
LyonLys
阅读(262)
评论(0)
推荐(0)
浙公网安备 33010602011771号