摘要: Cow PhrasebookTime Limit:1000MSMemory Limit:65536KTotal Submissions:2358Accepted:796DescriptionEver theinnovator, Farmer John is teaching cows to speak some phrases in humanlanguage. He writes each new phrase the cows learn in his phrase book, a totalof M (1 <= M <= 1,000) so far.When Farmer J 阅读全文
posted @ 2012-04-07 21:44 Stephen Li 阅读(410) 评论(0) 推荐(0)
摘要: StumpRemovalTime Limit:1000MSMemory Limit:65536KTotal Submissions:2459Accepted:1314DescriptionAlways thinking ofthe cows' grazing experience, FJ has found that he must remove N (1 <= N<= 50,000) unsightly stumps from the pasture. The stumps are convenientlyarranged in a straight line and n 阅读全文
posted @ 2012-04-07 17:48 Stephen Li 阅读(447) 评论(0) 推荐(0)
摘要: TheMoronic CowmpouterTime Limit:1000MSMemory Limit:65536KTotal Submissions:2402Accepted:1227DescriptionInexperienced in the digital arts, the cows tried to build acalculating engine (yes, it's a cowmpouter) using binary numbers (base 2) butinstead built one based on base negative 2! They were qu 阅读全文
posted @ 2012-04-07 17:35 Stephen Li 阅读(345) 评论(0) 推荐(0)