随笔分类 -  DP

摘要:Time Limit: 2000MSMemory Limit: 65536KTotal Submissions: 12078Accepted: 5098DescriptionA numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequ... 阅读全文
posted @ 2009-10-13 12:29 Weiyu Wang 阅读(860) 评论(0) 推荐(0)
摘要:Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 2595Accepted: 1198DescriptionIn Pearlania everybody is fond of pearls. One company, called The Royal Pearl, produces a lot of jewelry with pear... 阅读全文
posted @ 2009-10-13 12:18 Weiyu Wang 阅读(649) 评论(0) 推荐(0)
摘要:Time Limit: 1000MSMemory Limit: 30000KTotal Submissions: 3283Accepted: 963DescriptionIn the army, a platoon is composed by n soldiers. During the morning inspection, the soldiers are aligned in a stra... 阅读全文
posted @ 2009-10-13 10:59 Weiyu Wang 阅读(780) 评论(0) 推荐(0)
摘要:Time Limit: 2000MSMemory Limit: 65536KTotal Submissions: 2856Accepted: 1252DescriptionFew know that the cows have their own dictionary with W (1 ≤ W ≤ 600) words, each containing no more 2... 阅读全文
posted @ 2009-10-13 09:34 Weiyu Wang 阅读(977) 评论(1) 推荐(0)
摘要:Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 9109Accepted: 3052DescriptionA Bank plans to install a machine for cash withdrawal. The machine is able to deliver appropriate @ bills for a re... 阅读全文
posted @ 2009-10-13 02:27 Weiyu Wang 阅读(1206) 评论(2) 推荐(0)
摘要:Time Limit: 1000MSMemory Limit: 30000KTotal Submissions: 2538Accepted: 1384DescriptionGigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary ... 阅读全文
posted @ 2009-10-12 09:25 Weiyu Wang 阅读(1048) 评论(1) 推荐(1)
摘要:Time Limit: 2000MSMemory Limit: 65536KTotal Submissions: 1015Accepted: 391DescriptionOrganizing a programming contest is not an easy job. To avoid making the problems too difficult, the organizer usua... 阅读全文
posted @ 2009-10-09 02:45 Weiyu Wang 阅读(575) 评论(0) 推荐(0)