結果

問題 No.2550 MORE! JUMP! MORE!
ユーザー sepa38sepa38
提出日時 2023-11-19 19:51:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 313 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 107,108 KB
最終ジャッジ日時 2023-11-19 19:52:01
合計ジャッジ時間 9,008 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,332 KB
testcase_01 AC 34 ms
53,332 KB
testcase_02 AC 34 ms
53,332 KB
testcase_03 AC 34 ms
53,332 KB
testcase_04 AC 35 ms
53,332 KB
testcase_05 AC 34 ms
53,332 KB
testcase_06 AC 34 ms
53,332 KB
testcase_07 AC 34 ms
53,332 KB
testcase_08 AC 34 ms
53,332 KB
testcase_09 AC 37 ms
53,332 KB
testcase_10 AC 35 ms
53,332 KB
testcase_11 AC 35 ms
53,332 KB
testcase_12 AC 34 ms
53,332 KB
testcase_13 AC 34 ms
53,332 KB
testcase_14 AC 34 ms
53,332 KB
testcase_15 AC 34 ms
53,332 KB
testcase_16 AC 34 ms
53,332 KB
testcase_17 AC 34 ms
53,332 KB
testcase_18 AC 34 ms
53,332 KB
testcase_19 AC 34 ms
53,332 KB
testcase_20 AC 193 ms
94,824 KB
testcase_21 AC 124 ms
84,972 KB
testcase_22 AC 65 ms
72,060 KB
testcase_23 AC 172 ms
92,244 KB
testcase_24 AC 275 ms
107,108 KB
testcase_25 AC 182 ms
94,476 KB
testcase_26 AC 144 ms
88,176 KB
testcase_27 AC 238 ms
100,704 KB
testcase_28 AC 206 ms
97,332 KB
testcase_29 AC 165 ms
90,064 KB
testcase_30 AC 285 ms
101,600 KB
testcase_31 AC 284 ms
101,600 KB
testcase_32 AC 286 ms
101,600 KB
testcase_33 AC 313 ms
101,600 KB
testcase_34 AC 293 ms
101,600 KB
testcase_35 AC 286 ms
101,600 KB
testcase_36 AC 289 ms
101,600 KB
testcase_37 AC 312 ms
101,600 KB
testcase_38 AC 287 ms
101,600 KB
testcase_39 AC 285 ms
101,600 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
mod = 998244353
ans = 0
for i in range(n):
  ans += (i + 2) * pow(2, i-1, mod) * pow(2, max(0, n-i-2), mod) * a[i]
  ans %= mod
print(ans)
0