C. 求阶乘的和

    Type: Default 1000ms 256MiB

求阶乘的和

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.

【题目描述】

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

【输入】

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

【输出】

输出有一行:阶乘的和。

【输入样例】

5

【输出样例】

153

【来源】

一本通在线评测

20251121 随堂作业

Not Claimed
Status
Done
Problem
3
Open Since
2025-11-21 10:00
Deadline
2025-11-21 12:15
Extension
168 hour(s)