![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
~树状数组
文章平均质量分 86
idealistic
编程渣渣~~
展开
-
树状数组模板
链接:http://www.cnblogs.com/nanke/archive/2012/02/27/2370512.htmlint lowbit(int x){ return x & (-x);}void modify(int x,int add)//一维{ while(x { a[x]+=add; x+=lowbit(x转载 2016-08-16 20:43:45 · 2082 阅读 · 0 评论 -
树状数组--离散化
- 二分Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionVasiliy likes to rest after a hard work, so you may often meet him in some原创 2016-08-17 09:35:01 · 752 阅读 · 0 评论 -
【杭电1166】敌兵布阵
敌兵布阵Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionC国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Ti原创 2016-08-17 10:55:23 · 213 阅读 · 0 评论