摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文