結果

問題 No.1325 Subsequence Score
ユーザー brthyyjpbrthyyjp
提出日時 2021-02-20 15:58:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 181 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 81,664 KB
実行使用メモリ 172,408 KB
最終ジャッジ日時 2023-10-17 23:07:08
合計ジャッジ時間 6,546 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,356 KB
testcase_01 AC 35 ms
53,356 KB
testcase_02 AC 35 ms
53,356 KB
testcase_03 AC 39 ms
59,760 KB
testcase_04 AC 35 ms
53,356 KB
testcase_05 AC 39 ms
59,760 KB
testcase_06 AC 35 ms
53,356 KB
testcase_07 AC 45 ms
59,760 KB
testcase_08 AC 35 ms
53,356 KB
testcase_09 AC 34 ms
53,356 KB
testcase_10 AC 35 ms
53,356 KB
testcase_11 AC 40 ms
53,356 KB
testcase_12 AC 36 ms
53,356 KB
testcase_13 AC 164 ms
171,532 KB
testcase_14 AC 68 ms
94,192 KB
testcase_15 AC 143 ms
148,108 KB
testcase_16 AC 154 ms
160,948 KB
testcase_17 AC 92 ms
101,764 KB
testcase_18 AC 70 ms
89,288 KB
testcase_19 AC 165 ms
172,320 KB
testcase_20 AC 52 ms
75,464 KB
testcase_21 AC 85 ms
100,976 KB
testcase_22 AC 97 ms
103,928 KB
testcase_23 AC 169 ms
172,408 KB
testcase_24 AC 181 ms
172,408 KB
testcase_25 AC 165 ms
172,408 KB
testcase_26 AC 165 ms
172,408 KB
testcase_27 AC 166 ms
172,404 KB
testcase_28 AC 34 ms
53,356 KB
testcase_29 AC 34 ms
53,356 KB
testcase_30 AC 34 ms
53,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))

mod = 998244353
ans = 0
for i, a in enumerate(A):
    ans += (i+2)*a
ans *= pow(2, n-2, mod)
ans %= mod
print(ans)
0