上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 53 下一页
摘要: D. Event Datestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOn a history lesson the teacher asked Vasya to name the dates whennfamous events took place. He doesn't remembers the exact dates but he remembers a segment of days[li, ri](inclusi 阅读全文
posted @ 2013-03-05 13:52 剑不飞 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 食物链Time Limit:1000MSMemory Limit:10000KTotal Submissions:33156Accepted:9626Description动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。有人用两种说法对这N个动物所构成的食物链关系进行描述:第一种说法是"1 X Y",表示X和Y是同类。第二种说法是"2 X Y",表示X吃Y。此人对N个动物,用上述两种说法,一句接一句地说出K句话,这K句 阅读全文
posted @ 2013-03-05 13:18 剑不飞 阅读(142) 评论(0) 推荐(0) 编辑
摘要: find the most comfortable roadTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1864Accepted Submission(s): 779Problem DescriptionXX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure---超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适 阅读全文
posted @ 2013-03-03 21:14 剑不飞 阅读(121) 评论(0) 推荐(0) 编辑
摘要: More is betterTime Limit: 5000/1000 MS (Java/Others)Memory Limit: 327680/102400 K (Java/Others)Total Submission(s): 8057Accepted Submission(s): 3001Problem DescriptionMr Wang wants some boys to help him with a project. Because the project is rather complex,the more boys come, the better it will be. 阅读全文
posted @ 2013-03-03 20:27 剑不飞 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Optimal MilkingTime Limit:2000MSMemory Limit:30000KTotal Submissions:9253Accepted:3341Case Time Limit:1000MSDescriptionFJ has moved his K (1 15, a row is broken into successive lines of 15 numbers and a potentially shorter line to finish up a row. Each new row begins on its own line.OutputA single . 阅读全文
posted @ 2013-03-03 17:53 剑不飞 阅读(247) 评论(0) 推荐(0) 编辑
摘要: Drainage DitchesTime Limit:1000MSMemory Limit:10000KTotal Submissions:45239Accepted:17002DescriptionEvery time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to regrow. 阅读全文
posted @ 2013-03-03 14:05 剑不飞 阅读(187) 评论(0) 推荐(0) 编辑
摘要: PIGSTime Limit:1000MSMemory Limit:10000KTotal Submissions:13190Accepted:5843DescriptionMirko works on a pig farm that consists of M locked pig-houses and Mirko can't unlock any pighouse because he doesn't have the keys. Customers come to the farm one after another. Each of them has keys to s 阅读全文
posted @ 2013-03-03 12:07 剑不飞 阅读(125) 评论(0) 推荐(0) 编辑
摘要: CodeTime Limit:1000MSMemory Limit:65536KTotal Submissions:1645Accepted:625DescriptionKEY Inc., the leading company in security hardware, has developed a new kind of safe. To unlock it, you don't need a key but you are required to enter the correct n-digit code on a keypad (as if this were someth 阅读全文
posted @ 2013-03-02 17:50 剑不飞 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Play on WordsTime Limit:1000MSMemory Limit:10000KTotal Submissions:7826Accepted:2759DescriptionSome of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that doors. Because there is no other way to open the doors, the puzzle is very important 阅读全文
posted @ 2013-03-02 10:38 剑不飞 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Door ManTime Limit:1000MSMemory Limit:10000KTotal Submissions:1598Accepted:596DescriptionYou are a butler in a large mansion. This mansion has so many rooms that they are merely referred to by number (room 0, 1, 2, 3, etc...). Your master is a particularly absent-minded lout and continually leaves d 阅读全文
posted @ 2013-03-01 11:31 剑不飞 阅读(164) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 53 下一页