Problem D: 阶乘和(sum)

Problem D: 阶乘和(sum)

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 804  Solved: 313
[Submit] [Status] [Web Board] [Creator:]

Description

已知正整数 N(N<=200),设 S=1!+2!+3!+...N!。其中"!"表示阶乘,即 N!=1*2*3*……*(N-1)*N,
如:3!=1*2*3=6。请编程实现:输入正整数 N,输出计算结果 S 的值。

Sample Input Copy

4

Sample Output Copy

33

HINT

最后的长度,有500位