求阶乘的和

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

【题目描述】

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

【输入】

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

【输出】

输出有一行:阶乘的和。

【输入样例】

5

【输出样例】

153

【来源】

一本通在线评测

精英班-Day03作业

Not Claimed
Status
Done
Problem
20
Open Since
2024-7-21 0:00
Deadline
2024-7-24 23:59
Extension
24 hour(s)