摘要: Description Lily 特别喜欢养花,但是由于她的花特别多,所以照料这些花就变得不太容易。她把她的花依次排成一行,每盆花都有一个美观值。如果Lily把某盆花照料的好的话,这盆花的美观值就会上升,如果照料的不好的话,这盆花的美观值就会下降。有时,Lily想知道某段连续的花的美观值之和是多少, 阅读全文
posted @ 2016-07-22 18:53 踮起脚望天 阅读(164) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; typedef struct st { int begin; int end; }st; bool cmp(s 阅读全文
posted @ 2016-07-22 18:32 踮起脚望天 阅读(227) 评论(0) 推荐(0) 编辑
摘要: Description 过去的2012年对小Q来说是很悲催的一年,失恋了12次,每次都要郁闷1个来月。 好在小Q是个体育迷,在最痛苦的时候,他常常用观看各种体育节目来麻醉自己,比如伦敦奥运会期间,小Q就常常在周末邀上一群单身同事聚在自己的蜗居,一边畅饮啤酒,一边吹牛。 小Q最喜欢看的是跳水,主要原因 阅读全文
posted @ 2016-07-22 18:27 踮起脚望天 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 这是从网上看到的两篇博客感觉挺好的就转过来,留作复习的材料。 转载来源:http://www.cnblogs.com/superbin/archive/2010/08/02/1790467.html 线段树(interval tree) 是把区间逐次二分得到的一树状结构,它反映了包括归并排序在内的很 阅读全文
posted @ 2016-07-19 19:48 踮起脚望天 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Description When playing DotA with god-like rivals and pig-like team members, you have to face an embarrassing situation: All your teammates are kille 阅读全文
posted @ 2016-07-18 20:51 踮起脚望天 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Description During Frosh Week, students play various fun games to get to know each other and compete against other teams. In one such game, all the fr 阅读全文
posted @ 2016-07-18 20:45 踮起脚望天 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Description FJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the cows give as mu 阅读全文
posted @ 2016-07-18 11:31 踮起脚望天 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Description There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately 阅读全文
posted @ 2016-07-16 16:04 踮起脚望天 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,00 阅读全文
posted @ 2016-07-16 14:29 踮起脚望天 阅读(704) 评论(2) 推荐(1) 编辑
摘要: Description 某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报到二的出列,剩下的向小序号方向靠拢,再从头开始进行一至三报数,凡报到三的出列,剩下的向小序号方向靠拢,继续从头开始进行一至二报数。。。,以后从头开始轮流进行一至二报数 阅读全文
posted @ 2016-07-16 14:09 踮起脚望天 阅读(219) 评论(0) 推荐(0) 编辑