#lv12103. 求阶乘的和

求阶乘的和

题目描述:

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

输入格式:

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

输出格式:

输出有一行:阶乘的和。

样例:

5
153

提示