![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
线段树
剑断青丝i
世界上唯一可以阻止你前进的就是懒惰
展开
-
HDU-4027Can you answer these queries?(线段树)
Problem Description 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 every attack of our secr原创 2020-07-17 15:27:11 · 1979 阅读 · 0 评论 -
POJ-3264 Balanced Lineup(线段树代码讲解很详细)
For the daily milking, Farmer John’s N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game of Ultimate Frisbee with some of the cows. To keep things simple, he will take a contiguous range of cows from the原创 2020-07-08 13:14:40 · 2070 阅读 · 1 评论 -
Just a Hook(HDU-1698线段树代码讲解很详细)
Problem Description 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. Now Pudge wants to do some operations on the ho原创 2020-07-07 17:03:11 · 2666 阅读 · 0 评论