結果
問題 | No.2550 MORE! JUMP! MORE! |
ユーザー |
![]() |
提出日時 | 2023-11-25 13:23:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 211 ms / 2,000 ms |
コード長 | 333 bytes |
コンパイル時間 | 588 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 101,760 KB |
最終ジャッジ日時 | 2024-09-26 10:25:53 |
合計ジャッジ時間 | 6,401 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 40 |
ソースコード
mod = 998244353n = int(input())ans = 0sm_i = 0cnt = 1for i, x in enumerate(map(int, input().split())):c = cnts = sm_i + cntif i == n - 1:ans = (ans + s * x) % modelse:ans = (ans + s * x * pow(2, n - 2 - i, mod)) % modcnt = (c + cnt) % modsm_i = (sm_i + s) % modprint(ans)