結果
| 問題 |
No.1886 Sum of Slide Max
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-23 08:19:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 178 bytes |
| コンパイル時間 | 259 ms |
| コンパイル使用メモリ | 82,456 KB |
| 実行使用メモリ | 265,824 KB |
| 最終ジャッジ日時 | 2024-09-26 07:55:50 |
| 合計ジャッジ時間 | 4,007 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 2 TLE * 1 -- * 6 |
ソースコード
from math import factorial
n = int(input())
mod = 998244353
fact = factorial(n + 1)
for i in range(1, n + 1):
print((n - i + 1) * i * fact * pow(i + 1, -1, mod) % mod)