![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
线段树
ZX_zengxi
哈哈
展开
-
敌兵布阵(HDU - 1166)(线段树的点更新-区间查询)
敌兵布阵(HDU - 1166)C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不过C国的监视。原创 2017-08-09 20:33:08 · 390 阅读 · 0 评论 -
I Hate It (HDU - 1754) (线段树的点更新-最值查询)
I Hate It (HDU - 1754) 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。原创 2017-08-09 20:38:48 · 269 阅读 · 0 评论 -
Just a Hook (HDU - 1698)(线段树的区间更新-区间查询)
Just a Hook (HDU - 1698)In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic sticks which are of the same length.原创 2017-08-09 20:41:59 · 326 阅读 · 0 评论 -
Can you answer these queries? (HDU - 4027)(线段树区间更新-区间查询)
Can you answer these queries? (HDU - 4027)A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate the battleships. Each of the battleships can be marked a value of endurance. For ev原创 2017-08-09 20:45:22 · 414 阅读 · 0 评论