摘要: 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... 阅读全文
posted @ 2014-12-28 23:09 WhyWhy。 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-12-28 21:45 WhyWhy。 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 线段树(segment tree),一种二叉搜索树。比较常用。 就像这样。 推荐直接看http://wenku.baidu.com/view/94a8c01959eef8c75fbfb3d4.html (杭电的大神写的,十分推荐,特别棒。)例题:HDU 1166HDU 1754HDU 139... 阅读全文
posted @ 2014-12-28 21:05 WhyWhy。 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Description Nchildren are sitting in a circle to play a game. The children are numbered from 1 toNin clockwise order. Each of them has a card with a... 阅读全文
posted @ 2014-12-28 14:41 WhyWhy。 阅读(271) 评论(0) 推荐(0) 编辑