2013年8月7日

POJ 1338 Ugly Numbers

摘要: Ugly NumbersTime Limit:1000MSMemory Limit:10000KTotal Submissions:18395Accepted:8138DescriptionUgly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence1, 2, 3, 4, 5, 6, 8, 9, 10, 12, ...shows the first 10 ugly numbers. By convention, 1 is included.Given the integer n,write a pro 阅读全文

posted @ 2013-08-07 22:29 lzm风雨无阻 阅读(303) 评论(0) 推荐(0) 编辑

POJ 2247 Humble Numbers

摘要: Humble NumbersTime Limit:1000MSMemory Limit:65536KTotal Submissions:8831Accepted:4185DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, ... shows the first 20 humble numbers.Write 阅读全文

posted @ 2013-08-07 22:19 lzm风雨无阻 阅读(317) 评论(0) 推荐(0) 编辑

POJ 2236 Wireless Network

摘要: Wireless NetworkTime Limit:10000MSMemory Limit:65536KTotal Submissions:14018Accepted:5942DescriptionAn earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unexpected aftershock attacked, all computers in the n 阅读全文

posted @ 2013-08-07 20:54 lzm风雨无阻 阅读(254) 评论(0) 推荐(0) 编辑

POJ 2021 Relative Relatives

摘要: Relative RelativesTime Limit:1000MSMemory Limit:30000KTotal Submissions:3339Accepted:1462DescriptionToday is Ted's 100th birthday. A few weeks ago, you were selected by the family to contact all of Ted's descendants and organize a surprise party. To make this task easier, you created an age- 阅读全文

posted @ 2013-08-07 15:41 lzm风雨无阻 阅读(247) 评论(0) 推荐(0) 编辑

导航