結果
| 問題 | No.502 階乗を計算するだけ |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-04-15 20:53:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 165 bytes |
| コンパイル時間 | 413 ms |
| コンパイル使用メモリ | 82,596 KB |
| 実行使用メモリ | 60,672 KB |
| 最終ジャッジ日時 | 2025-04-15 20:55:02 |
| 合計ジャッジ時間 | 4,201 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 32 TLE * 1 -- * 19 |
ソースコード
MOD = 10**9 + 7
n = int(input())
if n >= MOD:
print(0)
else:
result = 1
for i in range(1, n + 1):
result = (result * i) % MOD
print(result)
lam6er