• 2260 SuperSum

    时间限制 : 2000/1000 MS(Java/Others) | 内存限制 : 131072/65536 KB(Java/Others)

    提交数 : 1112 | 通过数 : 467

    题目描述

    SuperSum is a function defined as: 
    SuperSum(0 , n) = n, for all positive n.
    SuperSum(k , n) = SuperSum(k-1 , 1) + SuperSum(k-1 , 2) + ... + SuperSum(k-1 , n), for all positive k, n.
    Given k and n, return the value for SuperSum(k , n).
    Constraints
    -
    k will be between 1 and 14, inclusive.
    -
    n will be between 1 and 14, inclusive.
    

    输入要求

     One line with two numbers k n.

    输出要求

     One line SuperSum(k,n).

    输入样例

    1
    3
    2
    3
    4
    10
    10
    10
    

    输出样例

    6
    10
    2002
    167960
    

    提示


    来源

    TopCoder

    [ 返回顶端 ] | [ 代码提交 ] | [ 统计数据 ] | [ 历史提交 ]