传统题 1000ms 256MiB

求 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! n!=1* 2* 3*…*n

输入要求

输入一个正整数n

输出要求

一行,包行一个整数代表n阶乘的值

输入样例

5

输出样例

120

知识点及提示

5!=1*2 *3 *4 *5=120

递归

未认领
状态
已结束
题目
10
开始时间
2026-7-6 0:00
截止时间
2026-7-31 23:59
可延期
24 小时