线段树
丘大路
这个作者很懒,什么都没留下…
展开
-
线段树 Balanced Lineup
Description 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原创 2016-08-08 17:20:22 · 135 阅读 · 0 评论 -
线段树 A Simple Problem with Integers
Description 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 i原创 2016-08-08 20:36:14 · 185 阅读 · 0 评论 -
线段树 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-08-09 10:37:24 · 155 阅读 · 0 评论