摘要:
There is a sequence of brackets, which supports two kinds of operations.we can choose a interval [l,r], and set all the elements range in this inter... 阅读全文
摘要:
Description In reward of being yearly outstanding magic student, Harry gets a magical computer. When the computer begins to deal with a process, it w... 阅读全文
摘要:
Description: For a sequenceS1,S2,⋯,SN, and a pair of integers(i,j), if1≤i≤j≤NandSi#include#define max(a,b) (a>b?a:b)#define min(a,b) (a=R) { ... 阅读全文
摘要:
Description ACM has bought a new crane (crane -- jeřáb) . The crane consists of n segments of various lengths, connected by flexible joints. The end ... 阅读全文
摘要:
Description There is a number of disjoint vertical line segments in the plane. We say that two segments are horizontally visible if they can be conne... 阅读全文
摘要:
Description LogLoader, Inc. is a company specialized in providing products for analyzing logs. While Ikki is working on graduation design, he is also... 阅读全文
摘要:
Description The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral post... 阅读全文
摘要:
Description You haveNintegers,A1,A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to add some given number to eac... 阅读全文
摘要:
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 cons... 阅读全文
摘要:
线段树(segment tree),一种二叉搜索树。比较常用。 就像这样。 推荐直接看http://wenku.baidu.com/view/94a8c01959eef8c75fbfb3d4.html (杭电的大神写的,十分推荐,特别棒。)例题:HDU 1166HDU 1754HDU 139... 阅读全文