摘要: Physics ExperimentTime Limit:1000MSMemory Limit:65536KTotal Submissions:784Accepted:266Special JudgeDescriptionSimon is doing a physics experiment withNidentical balls with the same radius ofRcentimeters. Before the experiment, allNballs are fastened within a vertical tube one by one and the lowest 阅读全文
posted @ 2014-03-30 13:53 hyx1 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 4 Values whose Sum is 0Time Limit:15000MSMemory Limit:228000KTotal Submissions:14475Accepted:4138Case Time Limit:5000MSDescriptionThe SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A x B x C x D are such that a + b 阅读全文
posted @ 2014-03-29 15:40 hyx1 阅读(232) 评论(0) 推荐(0) 编辑
摘要: The Water BowlsTime Limit:1000MSMemory Limit:65536KTotal Submissions:4088Accepted:1609DescriptionThe cows have a line of 20 water bowls from which they drink. The bowls can be either right-side-up (properly oriented to serve refreshing cool water) or upside-down (a position which holds no water). Th 阅读全文
posted @ 2014-03-29 14:52 hyx1 阅读(218) 评论(0) 推荐(0) 编辑
摘要: FliptileTime Limit:2000MSMemory Limit:65536KTotal Submissions:3062Accepted:1178DescriptionFarmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which they manipulate anM×Ngrid (1 ≤M≤ 15; 1 ≤N≤ 15) of square t 阅读全文
posted @ 2014-03-29 14:20 hyx1 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Face The Right WayTime Limit:2000MSMemory Limit:65536KTotal Submissions:2193Accepted:1039DescriptionFarmer John has arranged hisN(1 ≤N≤ 5,000) cows in a row and many of them are facing forward, like good cows. Some of them are facing backward, though, and he needs them all to face forward to make hi 阅读全文
posted @ 2014-03-29 13:21 hyx1 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Bound FoundTime Limit:5000MSMemory Limit:65536KTotal Submissions:1445Accepted:487Special JudgeDescriptionSignals of most probably extra-terrestrial origin have been received and digitalized by The Aeronautic and Space Administration (that must be going through a defiant phase: "But I want to us 阅读全文
posted @ 2014-03-28 23:58 hyx1 阅读(210) 评论(0) 推荐(0) 编辑
摘要: D. Upgrading Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have an array of positive integersa[1], a[2], ..., a[n]and a set ofbadprime numbersb1, b2, ..., bm. The prime numbers that do not occur in the setbare consideredgood. Thebeautyo 阅读全文
posted @ 2014-03-26 00:02 hyx1 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Graveyard DesignTime Limit:10000MSMemory Limit:64000KTotal Submissions:4443Accepted:946Case Time Limit:2000MSDescriptionKing George has recently decided that he would like to have a new design for the royal graveyard. The graveyard must consist of several sections, each of which must be a square of 阅读全文
posted @ 2014-03-25 17:41 hyx1 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Sum of Consecutive Prime NumbersTime Limit:1000MSMemory Limit:65536KTotal Submissions:17965Accepted:9871DescriptionSome positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given positive integer have? For example, the integer 5 阅读全文
posted @ 2014-03-25 17:11 hyx1 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Jessica's Reading ProblemTime Limit:1000MSMemory Limit:65536KTotal Submissions:6496Accepted:1998DescriptionJessica's a very lovely girl wooed by lots of boys. Recently she has a problem. The final exam is coming, yet she has spent little time on it. If she wants to pass it, she has to master 阅读全文
posted @ 2014-03-25 16:02 hyx1 阅读(213) 评论(0) 推荐(0) 编辑