Problem A: 阶乘之和(自定义函数)

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:14 Solved:7

Description

求1!+2!+......+n!的值

Input

输入一个正整数n(n<=10)

Output

阶乘之和

Sample Input Copy

3

Sample Output Copy

9

HINT

自定义一个求阶乘的函数

Source/Category