上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 28 下一页
摘要: Maximum sumTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 24408Accepted: 7404DescriptionGiven a set of n integers: A={a1, a2,..., an}, we define a function d(A) as below:Your task is to calculate d(A).InputThe input consists of T(<=30) test cases. The number of test cases (T) is given i 阅读全文
posted @ 2011-11-22 12:18 w0w0 阅读(214) 评论(0) 推荐(0)
摘要: An Easy ProblemTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 6665Accepted: 3955DescriptionAs we known, data stored in the computers is in binary form. The problem we discuss now is about the positive integers and its binary form. Given a positive integer I, you task is to find out an inte 阅读全文
posted @ 2011-11-22 12:17 w0w0 阅读(142) 评论(0) 推荐(0)
摘要: Ambiguous permutationsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5192Accepted: 3061DescriptionSome programming contest problems are really tricky: not only do they require a different output format from what you might have expected, but also the sample output does not show the differen 阅读全文
posted @ 2011-11-22 12:17 w0w0 阅读(177) 评论(0) 推荐(0)
摘要: BeavergnawTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5424Accepted: 3629Description When chomping a tree the beaver cuts a very specific shape out of the tree trunk. What is left in the tree trunk looks like two frustums of a cone joined by a cylinder with the diameter the same as its h 阅读全文
posted @ 2011-11-22 11:33 w0w0 阅读(152) 评论(0) 推荐(0)
摘要: Hay PointsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5107Accepted: 3303DescriptionEach employee of a bureaucracy has a job description - a few paragraphs that describe the responsibilities of the job. The employee's job description, combined with other factors, such as seniority, i 阅读全文
posted @ 2011-11-22 11:02 w0w0 阅读(198) 评论(0) 推荐(0)
摘要: Bank InterestTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 11770Accepted: 7008DescriptionFarmer John made a profit last year! He would like to invest it well but wonders how much money he will make. He knows the interest rate R (an integer between 0 and 20) that is compounded annually at 阅读全文
posted @ 2011-11-22 11:01 w0w0 阅读(137) 评论(0) 推荐(0)
摘要: Who's in the MiddleTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 21167Accepted: 12075DescriptionFJ 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 much or more than the median; half give as mu 阅读全文
posted @ 2011-11-22 11:00 w0w0 阅读(182) 评论(0) 推荐(0)
摘要: Questions and answersTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 8191Accepted: 4375DescriptionThe database of the Pentagon contains a top-secret information. We don't know what the information is — you know, it's top-secret, — but we know the format of its representation. It is 阅读全文
posted @ 2011-11-22 10:59 w0w0 阅读(185) 评论(0) 推荐(0)
摘要: Democracy in dangerTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 2446Accepted: 1809DescriptionIn one of the countries of Caribbean basin all decisions were accepted by the simple majority of votes at the general meeting of citizens (fortunately, there were no lots of them). One of the loc 阅读全文
posted @ 2011-11-22 10:10 w0w0 阅读(228) 评论(0) 推荐(0)
摘要: RopeTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 4377Accepted: 1585DescriptionPlotters have barberically hammered N nails into an innocent plane shape, so that one can see now only heads. Moreover, pursuing their mean object, they have hammered all the nails into the vertices of a convex 阅读全文
posted @ 2011-11-22 10:06 w0w0 阅读(223) 评论(0) 推荐(0)
摘要: Above AverageTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 12258Accepted: 6476DescriptionIt is said that 90% of frosh expect to be above average in their class. You are to provide a reality check.InputThe first line of standard input contains an integer C, the number of test cases. C data 阅读全文
posted @ 2011-11-22 10:05 w0w0 阅读(219) 评论(0) 推荐(0)
摘要: Rock, Scissors, PaperTime Limit: 5000MSMemory Limit: 65536KTotal Submissions: 3106Accepted: 1838DescriptionBart's sister Lisa has created a new civilization on a two-dimensional grid. At the outset each grid location may be occupied by one of three life forms: Rocks, Scissors, or Papers. Each da 阅读全文
posted @ 2011-11-22 09:59 w0w0 阅读(290) 评论(0) 推荐(0)
摘要: Guessing GameTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 12209Accepted: 4277DescriptionStan and Ollie are playing a guessing game. Stan thinks of a number between 1 and 10 and Ollie guesses what the number might be. After each guess, Stan indicates whether Ollie's guess is too high, 阅读全文
posted @ 2011-11-22 09:58 w0w0 阅读(199) 评论(0) 推荐(0)
摘要: Rotten RopesTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 4468Accepted: 2881DescriptionSuppose we have n ropes of equal length and we want to use them to lift some heavy object. A tear-off weight t is associated to each rope, that is, if we try to lift an object, heavier than t with that 阅读全文
posted @ 2011-11-22 09:57 w0w0 阅读(173) 评论(0) 推荐(0)
摘要: Beat the Spread!Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 15350Accepted: 7297DescriptionSuperbowl Sunday is nearly here. In order to pass the time waiting for the half-time commercials and wardrobe malfunctions, the local hackers have organized a betting pool on the game. Members plac 阅读全文
posted @ 2011-11-22 09:57 w0w0 阅读(214) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 28 下一页