結果

問題 No.500 階乗電卓
ユーザー gew1fw
提出日時 2025-06-12 14:32:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 161 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 82,476 KB
実行使用メモリ 53,920 KB
最終ジャッジ日時 2025-06-12 14:32:24
合計ジャッジ時間 2,021 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
mod = 10 ** 12
if n >= 26:
    print(0)
else:
    result = 1
    for i in range(2, n + 1):
        result = (result * i) % mod
    print(result)
0