当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

1283:Moving Computer

题目描述
Assurance Company of Moving (ACM) is a company of moving things for people. Recently, some schools want to move their computers to another place. So they ask ACM to help them. One school reserves K trucks for moving, and it has N computers to move. In order not to waste the trucks, the school ask ACM to use all the trucks. That is to say, there must be some computers in each truck, and there are no empty trucks. ACM wants to know how many partition shemes exists with moving N computers by K trucks, the ACM ask you to compute the number of different shemes with given N and K.
You needn't care with the order. For example N=7,K=3, the the following 3 partition instances are regarded as the same one and should be counted as one sheme.
1 1 5
1 5 1
5 1 1
Each truck can carry 200 computers at most.
输入解释
Each line of the input contains two postisive integer N (1<=N<=200) and K(1<=K<=N).Input is terminated by a line with N=K=0.
输出解释
For each line, output the number of different partition sheme . The result may be larger than 2^32, so you should care with the precision.
输入样例
1 1
7 3
0 0
输出样例
1
4
提示
The four partition shemes of the second sample are:
1 1 5
1 2 4
1 3 3
2 2 3

该题目是Virtual Judge题目,来自 北京大学POJ

题目来源 NOIP 2001

源链接: POJ-1283

最后修改于 2020-10-29T06:00:00+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
1000 10000