22182_Apieceofcake

2022-5-16 18:21| 发布者: Hocassian| 查看: 23| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-5-89506180558100-Problem List-采集的数据-后羿采集器.html

Pro.ID

22182

Title

A piece of cake

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=22182

AC

0

Submit

0

Ratio

-

时间&空间限制

  • Time Limit: 2000/1000 MS (Java/Others)     Memory Limit: 65536/65536 K (Java/Others)
  • 描述

    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
    2 4 1
    3 2 0
    0 0 0

    Sample Output

    6
    0
    8

    Source

    样例输入

    3 3 1
    2 4 1
    3 2 0
    0 0 0

    样例输出

    6
    0
    8

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部