Problem2534--a的阶乘 + b的阶乘

2534: a的阶乘 + b的阶乘

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

读入两个整数a和b (保证a和b均不大于10),请计算a! + b!
其中,感叹号!表示阶乘,
a! 表示 a*(a-1)*(a-2)*....*3 * 2 *1
例如:3! = 3*2*1 = 6

Sample Input Copy

4 3

Sample Output Copy

30

Source/Category

循环