結果

問題 No.500 階乗電卓
ユーザー fumofumofunifumofumofuni
提出日時 2021-11-17 23:41:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 151 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 8,216 KB
最終ジャッジ日時 2023-08-25 20:53:15
合計ジャッジ時間 2,023 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,004 KB
testcase_01 AC 15 ms
8,160 KB
testcase_02 AC 15 ms
8,184 KB
testcase_03 AC 16 ms
8,180 KB
testcase_04 AC 15 ms
7,768 KB
testcase_05 AC 16 ms
7,820 KB
testcase_06 AC 16 ms
7,820 KB
testcase_07 AC 16 ms
7,768 KB
testcase_08 AC 15 ms
7,788 KB
testcase_09 AC 15 ms
7,764 KB
testcase_10 AC 15 ms
7,740 KB
testcase_11 AC 15 ms
7,740 KB
testcase_12 AC 15 ms
7,836 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 15 ms
7,916 KB
testcase_16 AC 15 ms
8,148 KB
testcase_17 AC 16 ms
8,216 KB
testcase_18 AC 16 ms
8,148 KB
testcase_19 AC 15 ms
8,208 KB
testcase_20 AC 15 ms
8,176 KB
testcase_21 AC 16 ms
7,996 KB
testcase_22 AC 15 ms
8,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
res=1
for i in range(N):
    res*=i+1
    if res%1000000000000==0:
        print("000000000000")
        exit()
print(res%1000000000000)
0