#726. 数的划分
数的划分
Description
将整数 n 分成 k 份,且每份不能为空,任意两个方案不相同(不考虑顺序)。 例如:n=7,k=3,下面三种分法被认为是相同的。 1,1,5; 1,5,1; 5,1,1. 问有多少种不同的分法。
Format
Input
n,k (6<n≤200,2≤k≤6)
Output
1 个整数,即不同的分法。
Samples
7 3
4
说明/提示
四种分法为: 1,1,5; 1,2,4; 1,3,3; 2,2,3.
Limitation
1s, 1024KiB for each test case.
Related
In following homework: