摘要: Description很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。Input本题目包含多组测试,请处理到文件结束。在每个... 阅读全文
posted @ 2015-08-10 14:39 pb2016 阅读(220) 评论(0) 推荐(1) 编辑
摘要: 线段树: 树状数组: 阅读全文
posted @ 2015-08-10 14:37 pb2016 阅读(153) 评论(0) 推荐(1) 编辑
摘要: Problem DescriptionThere is an integeraandnintegersb1,…,bn. After selecting some numbers fromb1,…,bnin any order, sayc1,…,cr, we want to make sure tha... 阅读全文
posted @ 2015-08-09 09:39 pb2016 阅读(160) 评论(0) 推荐(1) 编辑
摘要: ZJiaQ want to become a strong man, so he decided to play the mook jong。ZJiaQ want to put some mook jongs in his backyard. His backyard consist of n br... 阅读全文
posted @ 2015-08-08 21:05 pb2016 阅读(213) 评论(0) 推荐(1) 编辑
摘要: Problem Descriptionsoda has a setSwithnintegers{1,2,…,n}. A set is called key set if the sum of integers in the set is an even number. He wants to kno... 阅读全文
posted @ 2015-08-08 17:27 pb2016 阅读(426) 评论(0) 推荐(1) 编辑
摘要: Description破解字迷之后,你得知Kid将会在展览开始后T分钟内盗取至少一颗宝石,并离开展馆。整个展馆呈矩形分布,划分为N*M个区域,有唯一的入口和出口(不能从出口进入,同样不能从入口出去)。由某个区域可直接移动至相邻四个区域中的一个,且最快需要一分钟。假设Kid进入放有宝石的区域即可盗取宝... 阅读全文
posted @ 2015-08-08 16:33 pb2016 阅读(263) 评论(0) 推荐(1) 编辑
摘要: DescriptionA hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary.You are to find all the hat... 阅读全文
posted @ 2015-08-08 10:55 pb2016 阅读(236) 评论(0) 推荐(1) 编辑
摘要: DescriptionIgnatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history boo... 阅读全文
posted @ 2015-08-08 10:49 pb2016 阅读(208) 评论(0) 推荐(1) 编辑
摘要: Description自从2006年3月10日至11日的首届数独世界锦标赛以后,数独这项游戏越来越受到人们的喜爱和重视。 据说,在2008北京奥运会上,会将数独列为一个单独的项目进行比赛,冠军将有可能获得的一份巨大的奖品―――HDU免费七日游外加lcy亲笔签名以及同hdu acm team合影留念的... 阅读全文
posted @ 2015-08-07 21:28 pb2016 阅读(186) 评论(0) 推荐(1) 编辑
摘要: DescriptionIn an episode of the Dick Van Dyke show, little Richie connects the freckles on his Dad's back to form a picture of the Liberty Bell. Alas,... 阅读全文
posted @ 2015-08-07 17:19 pb2016 阅读(524) 评论(0) 推荐(1) 编辑