joj1175

来源:互联网 发布:淘宝双11和双12 编辑:程序博客网 时间:2024/05/19 18:48
[新版judge已支持special judge;增加了提交后的状态页面;增加对提交代码的语言检查] [新版judge系统近日试运行,希望可以解决内存越界导致Waiting的问题] [more]
Welcome, �γɺ�
[JPoints: 895, Sender!: 0/1]

 1175: The Binomial Function


ResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K2794827Standard

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