Pro.ID22182 TitleA piece of cake Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22182 AC0 Submit0 Ratio- 时间&空间限制描述This problem is very simple, i.e. just a piece of cake for you, excellent programmers. You just need to calculate and output how many ways to put n different balls into m different boxes so that each box has at least k balls. 输入Input contains several test cases. Each of the test cases contains three integers in one line, n, m, k ( 1 ≤ n, m ≤ 15, 0 ≤ k ≤ 15 ). Input is terminated by three 0's, which should not be processed. 输出Description This problem is very simple, i.e. just a piece of cake for you, excellent programmers. You just need to calculate and output how many ways to put n different balls into m different boxes so that each box has at least k balls. Input Input contains several test cases. Each of the test cases contains three integers in one line, n, m, k ( 1 ≤ n, m ≤ 15, 0 ≤ k ≤ 15 ). Input is terminated by three 0's, which should not be processed. Output For each case, just print the result in one line. Heading zeros are forbidden. For example, 12 is legal output but 012 is not, 0 is legal but 00 is not, and so on. Sample Input 3 3 1 Sample Output 6 Source 样例输入3 3 1 样例输出6 作者 |