摘要: 最小邮票数题目描述: 有若干张邮票,要求从中选取最少的邮票张数凑成一个给定的总值。 如,有1分,3分,3分,3分,4分五张邮票,要求凑成10分,则使用3张邮票:3分、3分、4分即可。输入: 有多组数据,对于每组数据,首先是要求凑成的邮票总值M,M#define INF 0x7fffffff us... 阅读全文
posted @ 2015-01-13 21:14 tinylcy 阅读(619) 评论(0) 推荐(0) 编辑
摘要: ExpeditionDescriptionA group of cows grabbed a truck and ventured on an expedition deep into the jungle. Being rather poor drivers, the cows unfortuna... 阅读全文
posted @ 2015-01-13 20:06 tinylcy 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Find a longest common subsequence of two strings.输入:First and second line of each input casecontain two strings of lowercase character a…z. There... 阅读全文
posted @ 2015-01-13 18:42 tinylcy 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Fence RepairDescriptionFarmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needsN(1 ≤N... 阅读全文
posted @ 2015-01-13 15:33 tinylcy 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Saruman's ArmyDescriptionSaruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of his forces, Saruman... 阅读全文
posted @ 2015-01-13 14:52 tinylcy 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Best Cow LineDescriptionFJ is about to take hisN(1 ≤N≤ 2,000) cows to the annual"Farmer of the Year" competition. In this contest every farmer arrange... 阅读全文
posted @ 2015-01-13 14:07 tinylcy 阅读(363) 评论(0) 推荐(0) 编辑