結果
問題 | No.502 階乗を計算するだけ |
ユーザー |
![]() |
提出日時 | 2025-03-20 21:01:06 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 159 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 82,348 KB |
実行使用メモリ | 58,616 KB |
最終ジャッジ日時 | 2025-03-20 21:01:21 |
合計ジャッジ時間 | 5,269 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 32 TLE * 1 -- * 19 |
ソースコード
mod = 10**9 + 7n = int(input())if n >= mod:print(0)else:result = 1for i in range(1, n+1):result = result * i % modprint(result)