Home => ProblemSet => 1.5-34:求阶乘的和
Problem1096--1.5-34:求阶乘的和

1096: 1.5-34:求阶乘的和

Time Limit: 1 Sec  Memory Limit: 128 MB  Submit: 0  Solved: 4
[ Submit ] [ Status ] [ Creator: ][ 参考程序 ]

Description

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

Input

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

Output

输出有一行:阶乘的和。

Sample Input Copy

5

Sample Output Copy

153

Source/Category