結果

問題 No.500 階乗電卓
ユーザー 学ぶマン
提出日時 2025-06-27 22:23:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 106 bytes
コンパイル時間 3,651 ms
コンパイル使用メモリ 82,132 KB
実行使用メモリ 54,232 KB
最終ジャッジ日時 2025-06-27 22:24:30
合計ジャッジ時間 2,330 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
MOD = 10**12

if N < 50:
    print(math.factorial(N)%MOD)
else:
    print(0)
0