文件名称:Apple
- 所属分类:
- JSP源码/Java
- 资源属性:
- [MacOS] [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 雷*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
描述:把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。
输入:第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。
输出:对输入的每组数据M和N,用一行输出相应的K。
输入实例:
1
7 3
输出实例:8
-Descr iption: The same apples to the M of N on the same plate, empty plates to allow some hold, and asked how many different sub-law? (In K that) 5,1,1 and 1,5,1 is the same kind of points system. Input: The first line is the number of test data t (0 < = t < = 20). Each of the following line contains two integers M and N, separated by spaces. 1 < = M, N < = 10. Output: for each input data M and N, with a line of output corresponding K. Input Example: 173 Output Example: 8
输入:第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。
输出:对输入的每组数据M和N,用一行输出相应的K。
输入实例:
1
7 3
输出实例:8
-Descr iption: The same apples to the M of N on the same plate, empty plates to allow some hold, and asked how many different sub-law? (In K that) 5,1,1 and 1,5,1 is the same kind of points system. Input: The first line is the number of test data t (0 < = t < = 20). Each of the following line contains two integers M and N, separated by spaces. 1 < = M, N < = 10. Output: for each input data M and N, with a line of output corresponding K. Input Example: 173 Output Example: 8
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Apple.java