![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
线段树
文章平均质量分 51
Mason_xm
这个作者很懒,什么都没留下…
展开
-
I Hate It ( 单点更新板子题 )
HDU - 1754 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Input 本题目包含多组测试,请处理到文件结束。 在每个测试的第一行,有两个正整数 N 和 M ( 0<N<=20000...原创 2018-08-26 15:54:17 · 131 阅读 · 0 评论 -
Huge Mission (区间更新板子题 *)
FZU - 1608 Oaiei is busy working with his graduation design recently. If he can not complete it before the end of the month, and he can not graduate! He will be very sad with that, and he needs your...原创 2018-08-26 15:53:58 · 110 阅读 · 0 评论 -
A Simple Problem with Integers (区间更新区间求和板子 * )
POJ - 3468 You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is to...原创 2018-08-26 15:53:41 · 107 阅读 · 0 评论 -
敌兵布阵(线段树)
HDU - 1166 C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不过C国的监视。 中央情报局要研...原创 2018-08-26 15:53:21 · 193 阅读 · 0 评论