![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
线段树初解
文章平均质量分 83
朱仙令
这个作者很懒,什么都没留下…
展开
-
K - Just a Hook
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 lengt原创 2016-07-27 09:23:20 · 384 阅读 · 0 评论 -
J - A Simple Problem with Integers
Description 给出了一个序列,你需要处理如下两种询问。 "C a b c"表示给[a, b]区间中的值全部增加c (-10000 ≤ c ≤ 10000)。 "Q a b" 询问[a, b]区间中所有值的和。 Input 第一行包含两个整数N, Q。1 ≤ N,Q ≤ 100000. 第二行包含n个整数,表示初始的序列A (-1000000000 ≤ Ai原创 2016-07-27 09:12:56 · 256 阅读 · 0 评论 -
L - Can you answer these queries?
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原创 2016-07-27 17:27:15 · 378 阅读 · 0 评论 -
M - Tunnel Warfare
Description During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally speaking, villages connected by tunnels lay in a原创 2016-07-28 16:25:12 · 280 阅读 · 0 评论 -
最短的名字
ription 在一个奇怪的村子中,很多人的名字都很长,比如aaaaa, bbb and abababab。 名字这么长,叫全名显然起来很不方便。所以村民之间一般只叫名字的前缀。比如叫'aaaaa'的时候可以只叫'aaa',因为没有第二个人名字的前三个字母是'aaa'。不过你不能叫'a',因为有两个人的名字都以'a'开头。村里的人都很聪明,他们总是用最短的称呼叫人。输入保证村里不原创 2016-08-10 10:44:33 · 477 阅读 · 0 评论 -
hdu--Lost Cows
Description N (2 <= N <= 8,000) cows have unique brands in the range 1..N. In a spectacular display of poor judgment, they visited the neighborhood 'watering hole' and drank a few too many beers be原创 2016-08-14 09:06:22 · 362 阅读 · 0 评论