結果

問題 No.500 階乗電卓
ユーザー 0w10w1
提出日時 2017-04-09 19:38:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 87,308 KB
実行使用メモリ 76,500 KB
最終ジャッジ日時 2023-09-25 01:29:27
合計ジャッジ時間 3,295 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
76,500 KB
testcase_01 AC 103 ms
76,280 KB
testcase_02 AC 104 ms
76,260 KB
testcase_03 AC 104 ms
76,156 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 69 ms
71,504 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 68 ms
71,356 KB
testcase_12 AC 68 ms
71,372 KB
testcase_13 AC 70 ms
71,524 KB
testcase_14 AC 68 ms
71,596 KB
testcase_15 AC 70 ms
71,280 KB
testcase_16 AC 69 ms
71,204 KB
testcase_17 AC 69 ms
71,208 KB
testcase_18 AC 103 ms
76,272 KB
testcase_19 AC 103 ms
76,080 KB
testcase_20 AC 104 ms
76,360 KB
testcase_21 AC 103 ms
76,224 KB
testcase_22 AC 104 ms
76,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

f = 1
N = int( input() )
N = min( N, 10000 )
for i in range( 1, N + 1, 1 ):
  f *= i
ans = str( f % int( 1e12 ) )
while len( ans ) < 12:
  ans = "0" + ans
print( ans )
0