定义阶乘函数
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!。
输入格式
一个整数n(1 ≤ n ≤ 10)
输出格式
输出n的阶乘值
输入输出样例
输入 #1
5
输出 #1
120
输入 #2
3
输出 #2
6
输入 #3
10
输出 #3
3628800
王俊博测试
- Status
- Done
- Rule
- IOI
- Problem
- 8
- Start at
- 2026-9-27 16:00
- End at
- 2026-9-28 2:00
- Duration
- 10 hour(s)
- Host
- Partic.
- 1