1836: 求阶乘的和
Memory Limit:256 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
给定正整数n,求不大于n的正整数的阶乘的和(即求1!+2!+3!+...+n!),输出阶乘的和。
Input
输入有一行,包含一个正整数n(1 < n < 12)。
Output
输出有一行:阶乘的和。
Sample Input Copy
5
Sample Output Copy
153