摘要:
一、Description把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。Input第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。Output... 阅读全文
摘要:
一、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... 阅读全文
摘要:
一、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... 阅读全文
摘要:
一、DescriptionZombies love to eat brains. Yum.InputThe first line contains a single integer n indicating the number of data sets.The following n lines ... 阅读全文
摘要:
一、DescriptionZombies love to eat brains. Yum.InputThe first line contains a single integer n indicating the number of data sets.The following n lines ... 阅读全文