結果

問題 No.1886 Sum of Slide Max
ユーザー titiatitia
提出日時 2022-03-26 00:55:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,413 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 22,784 KB
最終ジャッジ日時 2024-04-22 10:08:46
合計ジャッジ時間 10,310 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
22,528 KB
testcase_01 AC 132 ms
22,400 KB
testcase_02 AC 132 ms
22,528 KB
testcase_03 AC 128 ms
22,400 KB
testcase_04 AC 131 ms
22,528 KB
testcase_05 AC 1,336 ms
22,656 KB
testcase_06 AC 191 ms
22,656 KB
testcase_07 AC 1,057 ms
22,656 KB
testcase_08 AC 1,409 ms
22,784 KB
testcase_09 AC 1,407 ms
22,656 KB
testcase_10 AC 1,412 ms
22,528 KB
testcase_11 AC 1,413 ms
22,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
mod=998244353

FACT=[1]
for i in range(1,3*10**5):
    FACT.append(FACT[-1]*i%mod)

for i in range(1,N+1):
    print(FACT[N]*(N+1)*pow(i+1,mod-2,mod)*i*(N-i+1)%mod)
0