Problem1065--阶乘数列

1065: 阶乘数列

[Creator : Imported]
Time Limit : 1.000 sec  Memory Limit : 32 MiB

Description

求Sn=1!+2!+3!+4!+5!+…+n!之值,其中n是一个整数。(1≤n≤10)

Input

n

Output

Sn

Sample Input Copy

5

Sample Output Copy

153

HINT


Source/Category

Please give us a Star @HUSTOJ Github!

欢迎关注微信公众号onlinejudge