Problem 2108 --阶乘数列

2108: 阶乘数列

Time Limit: 1 Sec  Memory Limit: 32 MB
Submit: 772  Solved: 613
[Submit][Status][Web Board][Creator:][下载FPS1元][添加到购物车][下载测试数据1元][92kb]

Description

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

Input

n

Output

Sn

Sample Input

5

Sample Output

153

HINT




Source

[Submit][Status]