結果

問題 No.500 階乗電卓
ユーザー AT274_AT274_
提出日時 2019-10-31 21:25:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 142 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 10,504 KB
実行使用メモリ 8,176 KB
最終ジャッジ日時 2023-10-13 00:12:40
合計ジャッジ時間 1,717 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,124 KB
testcase_01 AC 17 ms
8,032 KB
testcase_02 AC 15 ms
8,176 KB
testcase_03 AC 16 ms
8,024 KB
testcase_04 AC 16 ms
7,760 KB
testcase_05 AC 15 ms
7,716 KB
testcase_06 AC 16 ms
7,768 KB
testcase_07 AC 15 ms
7,768 KB
testcase_08 AC 16 ms
7,852 KB
testcase_09 AC 17 ms
7,912 KB
testcase_10 AC 16 ms
7,768 KB
testcase_11 AC 16 ms
7,776 KB
testcase_12 AC 16 ms
7,776 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 15 ms
7,736 KB
testcase_16 WA -
testcase_17 AC 15 ms
8,120 KB
testcase_18 AC 15 ms
8,120 KB
testcase_19 AC 17 ms
8,032 KB
testcase_20 AC 16 ms
8,028 KB
testcase_21 AC 16 ms
8,016 KB
testcase_22 AC 16 ms
8,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N > 50:
    print('0' * 12)
    exit()


ans = 1
for n in range(1, N + 1):
    ans *= n
    ans %= (10 ** 12)

print(ans)
0