回分類題庫
d038: 階乘
出處:

Difficulity : 1
Accepted : 169 Times | Submit :1443 Times | Clicks : 7624
Accepted : 115 Users | Submit : 280 Users | Accepted rate : 41%
Time Limit :2001 ms | Memory Limit : 32001 KBytes
題目加入時間 : 2008-10-11 09:38

Content :

輸入正整數 n,求 n! 。

Input :

n <= 1000

Output :

Sample Input :

10
30
50
100

Sample Output :

3628800
265252859812191058636308480000000
30414093201713378043612608166064768844377641568960512000000000000
93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000

Hint :


  

Author :

(管理員:MrWrongAnswer)

  Solve it!   Status Forum (2)

C++
C
JAVA
64880. wwx (26 ms , 1438KB)
64794. fb15 (30 ms , 1428KB)
7022. pcsh710742 (40 ms , 2642KB)
40294. staycalm (44 ms , 3602KB)
64755. fb15 (48 ms , 2252KB)
53600. ag100 (34 ms , 2748KB)
1735. yuhanlyu (42 ms , 2400KB)
72434. alun0922 (44 ms , 236KB)
1736. yuhanlyu (44 ms , 2404KB)
1734. yuhanlyu (44 ms , 2394KB)
75702. ag100j (312 ms , 14908KB)
53045. nwgs524513cja (750 ms , 8344KB)
56026. nwgs524513cja (764 ms , 8264KB)
53055. nwgs524513cja (764 ms , 8088KB)
52061. nwgs524513cja (802 ms , 7220KB)

執行時間會受很多因素影響因此僅供參考,主機等級請看這裡