摘要: Description 与很多奶牛一样,Farmer John那群养尊处优的奶牛们对食物越来越挑剔,随便拿堆草就能打发她们午饭的日子自然是一去不返了。现在,Farmer John不得不去牧草专供商那里购买大量美味多汁的牧草,来满足他那N(1 <= N <= 100,000)头挑剔的奶牛。 所有奶牛都 阅读全文
posted @ 2016-07-16 20:19 meekyan 阅读(497) 评论(0) 推荐(0) 编辑
摘要: Tunnel Warfare Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description During the War of Resistance Again 阅读全文
posted @ 2016-07-16 17:37 meekyan 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 3224: Tyvj 1728 普通平衡树 Description 您需要写一种数据结构(可参考题目标题),来维护一些数,其中需要提供以下操作:1. 插入x数2. 删除x数(若有多个相同的数,因只删除一个)3. 查询x数的排名(若有多个相同的数,因输出最小的排名)4. 查询排名为x的数5. 求x的前 阅读全文
posted @ 2016-07-16 16:40 meekyan 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Description Given a dice with n sides, you have to find the expected number of times you have to throw that dice to see all its faces at least once. A 阅读全文
posted @ 2016-07-16 11:51 meekyan 阅读(335) 评论(0) 推荐(0) 编辑
摘要: Description As Harry Potter series is over, Harry has no job. Since he wants to make quick money, (he wants everything quick!) so he decided to rob ba 阅读全文
posted @ 2016-07-16 10:50 meekyan 阅读(315) 评论(0) 推荐(0) 编辑