魏老四OJ
Home
ProblemSet
Source/Category
Contest
题单
Status
Ranklist
F.A.Qs
Login
1285: 【基础】计算N的阶乘
Memory Limit:16 MB
Time Limit:1.000 S
:
Creator:
Submit:4
Solved:4
Submit
Statistics
Description
请计算n的阶乘(1<=n<=100)
n的阶乘计算公式为:n!=n*(n-1)*(n-2)*...*1,如:5!=5*4*3*2*1=120
Input
一个整数n(1<=n<=100)
Output
n的阶乘
Sample Input
20
Sample Output
2432902008176640000
Source/Category
高精度算法
Submit
Statistics