阶乘和(sum)
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<=100),设 S=1!+2!+3!+...N!。其中"!"表示阶乘,即 N!=1*2*3*……*(N-1)*N, 如:3!=1*2*3=6。
请编程实现:输入正整数 N,输出计算结果 S 的值。
【输入样例】 4
【输出样例】 33
来源
一本通 高精度 一本通2018-第一章-高精度2025-12-7-周训练
- Status
- Done
- Rule
- XCPC
- Problem
- 6
- Start at
- 2025-12-7 14:00
- End at
- 2025-12-7 17:00
- Duration
- 3 hour(s)
- Host
- Partic.
- 17