4383: 【函数】求1!+2!+……+n!的值(例题)
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:96
Solved:32
Description
例6.2 用函数求1!+2!+……+n!的值。(n <= 20)
注:3! 即为3的阶乘,相当于 1 * 2 * 3
注:3! 即为3的阶乘,相当于 1 * 2 * 3
Input
n ((n <= 20))
Output
一个数,所求的值。
Sample Input Copy
10
Sample Output Copy
sum=4037913