
树状数组
zx-123
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
poj2481Cows
Cows Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 11742 Accepted: 3884 Description Farmer John's cows have discovered that the clover growing along the转载 2014-05-06 10:44:32 · 402 阅读 · 0 评论 -
poj Stars
#include #include int level[15005]; //下标为等级数 int tree[32005]; //下标为横坐标 int lowbit(int x) { return x & -x; } void update(int x) { int i; for (i=x; i tree[i] += 1; }原创 2014-05-06 11:17:45 · 434 阅读 · 0 评论