2014年3月16日

codeforces --- 302D

摘要: D. Yaroslav and Timetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYaroslav is playing a game called "Time". The game has a timer showing the lifespan he's got left. As soon as the timer shows 0, Yaroslav's character dies and t 阅读全文

posted @ 2014-03-16 17:27 ~Love() 阅读(187) 评论(0) 推荐(0)

POJ 1144

摘要: A -NetworkTime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 1144DescriptionA Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from 1 to N . No two places have the same numbe 阅读全文

posted @ 2014-03-16 17:25 ~Love() 阅读(204) 评论(0) 推荐(0)

codeforces --- 115A

摘要: A. Partytime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA company hasnemployees numbered from1ton. Each employee either has no immediate manager or exactly one immediate manager, who is another employee with a different number. An employeeAis sai 阅读全文

posted @ 2014-03-16 17:21 ~Love() 阅读(165) 评论(0) 推荐(0)

codeforce --- 237C

摘要: C. Primes on Intervaltime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou've decided to carry out a survey in the theory of prime numbers. Let us remind you that a prime number is a positive integer that has exactly two distinct positive integ 阅读全文

posted @ 2014-03-16 17:18 ~Love() 阅读(250) 评论(0) 推荐(0)

codeforce --- 340D

摘要: D. Bubble Sort Graphtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIahub recently has learned Bubble Sort, an algorithm that is used to sort a permutation withnelementsa1,a2, ...,anin ascending order. He is bored of this so simple algorithm, so h 阅读全文

posted @ 2014-03-16 17:16 ~Love() 阅读(207) 评论(0) 推荐(0)

HUD --- 3635

摘要: Five hundred years later, the number of dragon balls will increase unexpectedly, so it's too difficult for Monkey King(WuKong) to gather all of the dragon balls together.His country has N cities and there are exactly N dragon balls in the world. At first, for the ith dragon ball, the sacred drag 阅读全文

posted @ 2014-03-16 17:07 ~Love() 阅读(213) 评论(0) 推荐(0)

codeforces -- 283A

摘要: A. Cows and Sequencetime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBessie and the cows are playing with sequences and need your help. They start with a sequence, initially containing just the number 0, and performnoperations. Each operation is o 阅读全文

posted @ 2014-03-16 17:01 ~Love() 阅读(331) 评论(0) 推荐(0)

HDU -- 4496

摘要: D-CityTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 840Accepted Submission(s): 340Problem DescriptionLuxer is a really bad guy. He destroys everything he met.One day Luxer went to D-city. D-city has N D-points and M D-lines. Each D-line connects 阅读全文

posted @ 2014-03-16 16:57 ~Love() 阅读(233) 评论(0) 推荐(0)

导航