LouZhang

导航

2012年8月3日

hdu_1166,树状数组的学习

摘要: 至于数状数组是怎么来的,这个得找资料了。。。也不知道怎么上传。。所以我也不讲了可以参考这个http://blog.csdn.net/cambridgeacm/article/details/7771782http://acm.hdu.edu.cn/showproblem.php?pid=1166这题是很经典的题,最开始是学线段树的时候做的,这次学树状数组,又做了一遍#include<cstdio>#include<cstring>const int maxn = 50000 + 10;int a[maxn], c[maxn];int n;inline int lowbi 阅读全文

posted @ 2012-08-03 12:26 louzhang_swk 阅读(189) 评论(0) 推荐(0) 编辑