Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Recent
Login
Problem1363--计算n的阶乘 初级版
1363: 计算n的阶乘 初级版
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
7
Solved:
7
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入自然数n (n<12),计算n的阶乘 n!
n! = 1 x 2 .... x n
如4的阶乘 4! = 1 x2 x 3 x 4 = 24
Sample Input
4
Sample Output
24
Source/Category