随笔分类 - 线段树
摘要:Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones.Your task is counting the segmen...
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1698Problem DescriptionIn the game of DotA, Pudge’s meat hook is actually the most horrible thing for most o...
阅读全文
摘要:The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral posters at all pl...
阅读全文
摘要:DescriptionYou haveNintegers,A1,A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each ...
阅读全文