五一劳动节快乐!!!!


1052: C++语言 阶乘和 6.4

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:Imported
Submit:413 Solved:208

Description

求Sn=1!+2!+3!+4!+5!+…+n!之值,其中n是一个数字。

Input

n

Output

Sample Input Copy

5

Sample Output Copy

153