joj1175
来源:互联网 发布:淘宝钻展如何使用 编辑:程序博客网 时间:2024/05/22 03:37
1175: The Binomial Function
1st Jilin University ACM International Collegiate Programming Contest
In this problem, you are to write a program to make the value of the binomial function:
where n and m are integers.
Input Specification
The input consists of several pairs of n and m(0<=n, m<=30). The end of input is marked by n=m=0, which should not be processed.
Output Specification
For each pair of n and m, you should print a line like this: "Binom(n, m) = v", where n, m and v have to be replaced by the values of n, m and v.
Sample Input
5 57 05 90 0
Sample Output
Binom(5, 5) = 1Binom(7, 0) = 1Binom(5, 9) = 32
This problem is used for contest: 110
Submit / Problem List / Status / Discuss