第32649题 程序题
求阶乘的和

题目描述

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

输入描述

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

输出描述

输出有一行:阶乘的和。

输入样例

5

输出样例

153
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
编辑模式
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析