Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1420--高精度-计算n的阶乘
1420: 高精度-计算n的阶乘
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
397
Solved:
238
[
Status
] [
Submit
] [Creator:
]
Description
计算n的阶乘
(1<=n<=1000)
n!=1*2*3*...*n
Input
一个正整数n
(1<=n<=1000)
Output
输出n的阶乘,开头不能有多余的0
Sample Input
Copy
6
Sample Output
Copy
720
HINT
样例1的提示
1*2*3*4*5*6=720
样例2
输入:
54
输出:
230843697339241380472092742683027581083278564571807941132288000000000000
Source/Category
提高B