求n的阶
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的阶。
请使用递归完成。
5! = 5*4*3*2*1 = 120
样例输入1
5
样例输出1
120
样例输入2
6
样例输出2
720
20240118
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 8
- Start at
- 2024-1-18 17:30
- End at
- 2024-1-18 18:30
- Duration
- 1 hour(s)
- Host
- Partic.
- 15