結果

問題 No.500 階乗電卓
ユーザー KeroruKeroru
提出日時 2020-05-01 01:03:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 129 bytes
コンパイル時間 504 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 71,496 KB
最終ジャッジ日時 2023-08-23 07:24:58
合計ジャッジ時間 3,284 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,312 KB
testcase_01 AC 71 ms
71,484 KB
testcase_02 AC 72 ms
71,468 KB
testcase_03 AC 70 ms
71,316 KB
testcase_04 AC 70 ms
71,440 KB
testcase_05 AC 70 ms
71,360 KB
testcase_06 AC 71 ms
71,216 KB
testcase_07 AC 71 ms
71,332 KB
testcase_08 AC 70 ms
71,476 KB
testcase_09 AC 70 ms
71,420 KB
testcase_10 AC 70 ms
71,496 KB
testcase_11 AC 70 ms
71,400 KB
testcase_12 AC 71 ms
71,460 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 72 ms
71,140 KB
testcase_16 AC 71 ms
71,144 KB
testcase_17 AC 70 ms
71,272 KB
testcase_18 AC 75 ms
71,204 KB
testcase_19 AC 72 ms
71,316 KB
testcase_20 AC 73 ms
71,484 KB
testcase_21 AC 71 ms
71,224 KB
testcase_22 AC 71 ms
71,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans=1
for i in range(1,n+1):
    ans*=i
    ans%=10**12
    if ans==0:
        ans='0'*12
        break
print(ans)
0