1575: 1.5-34:求阶乘的和

Memory Limit:64 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:404 Solved:328

Description

给定正整数n,求不大于n的正整数的阶乘的和(即求1!+2!+3!+...+n!)

Input

输入有一行,包含一个正整数n(1 < n < 12)。

Output

输出有一行:阶乘的和。

Sample Input Copy

5

Sample Output Copy

153

加入题单

算法标签: