結果
問題 | No.1886 Sum of Slide Max |
ユーザー | 👑 kakel-san |
提出日時 | 2023-11-23 08:18:54 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 178 bytes |
コンパイル時間 | 574 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 18,772 KB |
最終ジャッジ日時 | 2023-11-23 08:18:59 |
合計ジャッジ時間 | 4,314 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 27 ms
16,788 KB |
testcase_01 | AC | 27 ms
9,984 KB |
testcase_02 | AC | 27 ms
9,984 KB |
testcase_03 | AC | 27 ms
9,984 KB |
testcase_04 | AC | 27 ms
9,984 KB |
testcase_05 | TLE | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
ソースコード
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)