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

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

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

Description

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

Input

正整数N(N〈=20)

Output

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

Sample Input Copy

3

Sample Output Copy

9

Source/Category

 黄金