1177: 【C语言训练】求1+2!+3!+...+N!的和

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:60 Solved:5

Description

求1+2!+3!+...+N!的和

Input

正整数N(N〈=20)

Output

1+2!+3!+...+N!的和 (结果为整数形式)

Sample Input Copy

3

Sample Output Copy

9