摘要: 一、DescriptionFJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the cows give as m... 阅读全文
posted @ 2013-07-19 20:57 InkGenius 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 一、DescriptionFJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the cows give as m... 阅读全文
posted @ 2013-07-19 20:57 InkGenius 阅读(781) 评论(0) 推荐(0) 编辑
摘要: 一、DescriptionThe king pays his loyal knight in gold coins. On the first day of his service, the knight receives one gold coin. On each of the next two... 阅读全文
posted @ 2013-07-19 20:27 InkGenius 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 一、DescriptionThe king pays his loyal knight in gold coins. On the first day of his service, the knight receives one gold coin. On each of the next two... 阅读全文
posted @ 2013-07-19 20:27 InkGenius 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 一、Description把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。Input第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。Output... 阅读全文
posted @ 2013-07-19 14:56 InkGenius 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 一、Description把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。Input第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。Output... 阅读全文
posted @ 2013-07-19 14:56 InkGenius 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 一、DescriptionA color reduction is a mapping from a set of discrete colors to a smaller one. The solution to this problem requires that you perform jus... 阅读全文
posted @ 2013-07-19 10:58 InkGenius 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 一、DescriptionA color reduction is a mapping from a set of discrete colors to a smaller one. The solution to this problem requires that you perform jus... 阅读全文
posted @ 2013-07-19 10:58 InkGenius 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 一、DescriptionZombies love to eat brains. Yum.InputThe first line contains a single integer n indicating the number of data sets.The following n lines ... 阅读全文
posted @ 2013-07-19 09:40 InkGenius 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 一、DescriptionZombies love to eat brains. Yum.InputThe first line contains a single integer n indicating the number of data sets.The following n lines ... 阅读全文
posted @ 2013-07-19 09:40 InkGenius 阅读(211) 评论(0) 推荐(0) 编辑