結果

問題 No.1886 Sum of Slide Max
ユーザー 👑 kakel-sankakel-san
提出日時 2023-11-23 08:19:40
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 178 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 264,992 KB
最終ジャッジ日時 2023-11-23 08:19:45
合計ジャッジ時間 4,193 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,460 KB
testcase_01 AC 35 ms
53,460 KB
testcase_02 AC 36 ms
53,460 KB
testcase_03 AC 35 ms
53,460 KB
testcase_04 AC 34 ms
53,460 KB
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0