摘要: Problem D: Above AverageIt is said that 90% of frosh expect to be above average in theirclass. You are to provide a reality check.The first line of standard input contains an integer C,the number of... 阅读全文
posted @ 2010-10-26 22:49 hailong 阅读(165) 评论(0) 推荐(0) 编辑
摘要: The ProblemMedian plays an important role in the world of statistics. By definition,it is a value which divides an array into two equal parts. In this problemyou are to determine the current median of... 阅读全文
posted @ 2010-10-26 22:10 hailong 阅读(511) 评论(0) 推荐(0) 编辑
摘要: A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on all the values 1 through n-1. For instance,1 4 2 3is a jolly jumpe... 阅读全文
posted @ 2010-10-26 14:40 hailong 阅读(271) 评论(0) 推荐(0) 编辑