ACM集训-线段树
piekey1994
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hdu 1166 敌兵布阵(线段树-单点更新,区间求和)
DescriptionC国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不过C国的监视。中央情原创 2014-08-08 09:14:33 · 551 阅读 · 0 评论 -
HDU 1394 Minimum Inversion Number(线段树求逆序数)
DescriptionThe inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i aj.For a given sequence of numbers a1, a2, ..., an, if we move the原创 2014-08-08 09:18:56 · 407 阅读 · 0 评论 -
hdu 2795 Billboard(线段树-剩余空间)
DescriptionAt the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). The board is the place where all possible announcements are po原创 2014-08-08 09:30:02 · 376 阅读 · 0 评论
分享