結果

問題 No.502 階乗を計算するだけ
ユーザー gew1fw
提出日時 2025-06-12 18:41:14
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 161 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 67,192 KB
最終ジャッジ日時 2025-06-12 18:41:23
合計ジャッジ時間 4,673 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 32 TLE * 1 -- * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

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