摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4262树状数组更新点的位置,并可以求出两点之间的有多少球View Code 1 #include <stdio.h> 2 #define maxn 100001 3 int ans[maxn], n, b[maxn]; 4 5 int lowbit(int x) 6 { 7 return x & (-x); 8 } 9 10 void mod(int x, int data)11 {12 int i;13 for(i = x; i <= n; i+=lowbit(i))14 ... 阅读全文
posted @ 2012-08-28 21:15 YORU 阅读(218) 评论(0) 推荐(0)