結果

問題 No.500 階乗電卓
ユーザー NoneNone
提出日時 2021-05-05 02:35:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 131 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 87,004 KB
実行使用メモリ 71,332 KB
最終ジャッジ日時 2023-10-01 04:33:20
合計ジャッジ時間 3,300 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,136 KB
testcase_01 AC 72 ms
71,164 KB
testcase_02 AC 70 ms
70,868 KB
testcase_03 AC 72 ms
71,288 KB
testcase_04 AC 71 ms
71,116 KB
testcase_05 AC 70 ms
71,096 KB
testcase_06 AC 70 ms
71,120 KB
testcase_07 AC 71 ms
71,268 KB
testcase_08 AC 70 ms
71,104 KB
testcase_09 AC 69 ms
71,292 KB
testcase_10 AC 71 ms
71,112 KB
testcase_11 AC 71 ms
71,264 KB
testcase_12 AC 70 ms
71,332 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 71 ms
71,104 KB
testcase_16 AC 72 ms
71,100 KB
testcase_17 AC 70 ms
71,068 KB
testcase_18 AC 71 ms
71,332 KB
testcase_19 AC 71 ms
71,240 KB
testcase_20 AC 70 ms
71,176 KB
testcase_21 AC 73 ms
71,104 KB
testcase_22 AC 70 ms
70,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
f=1
for i in range(1,N+1):
    f*=i
    f%=10**12
    if f==0:
        print("000000000000")
        exit()
print(f)
0