文件名称:Apple_Set
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:4.86kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Problem A:放苹果
Time Limit:1000MS Memory Limit:65536K
Total Submit:1094 Accepted:441
Language: not limited
Descr iption
把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。
Input
第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。
Output
对输入的每组数据M和N,用一行输出相应的K。
Sample Input
1
7 3
Sample Output
8-Problem A: Apple released Time Limit: 1000MS Memory Limit: 65536KTotal Submit: 1094 Accepted: 441 Language: not limitedDescr iption to M of the same apple on the N plate of the same, allowing some empty onto a plate and asked the total number of different types of sub-law? (Indicated by K) 5,1,1 and 1,5,1 is the same method. Input the first line is the number of test data t (0
Time Limit:1000MS Memory Limit:65536K
Total Submit:1094 Accepted:441
Language: not limited
Descr iption
把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。
Input
第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。
Output
对输入的每组数据M和N,用一行输出相应的K。
Sample Input
1
7 3
Sample Output
8-Problem A: Apple released Time Limit: 1000MS Memory Limit: 65536KTotal Submit: 1094 Accepted: 441 Language: not limitedDescr iption to M of the same apple on the N plate of the same, allowing some empty onto a plate and asked the total number of different types of sub-law? (Indicated by K) 5,1,1 and 1,5,1 is the same method. Input the first line is the number of test data t (0
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Apple_Set/1.c
Apple_Set/1.dsp
Apple_Set/1.dsw
Apple_Set/1.ncb
Apple_Set/1.opt
Apple_Set/1.plg
Apple_Set/Request.txt
Apple_Set/Debug
Apple_Set
Apple_Set/1.dsp
Apple_Set/1.dsw
Apple_Set/1.ncb
Apple_Set/1.opt
Apple_Set/1.plg
Apple_Set/Request.txt
Apple_Set/Debug
Apple_Set
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.