結果

問題 No.1325 Subsequence Score
ユーザー hiro1729hiro1729
提出日時 2023-09-10 16:03:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 477 ms
コンパイル使用メモリ 86,292 KB
実行使用メモリ 173,968 KB
最終ジャッジ日時 2023-09-10 16:03:12
合計ジャッジ時間 8,738 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,084 KB
testcase_01 AC 72 ms
71,304 KB
testcase_02 AC 71 ms
70,732 KB
testcase_03 AC 120 ms
76,024 KB
testcase_04 AC 75 ms
71,200 KB
testcase_05 AC 76 ms
75,992 KB
testcase_06 AC 71 ms
70,972 KB
testcase_07 AC 75 ms
76,016 KB
testcase_08 AC 70 ms
70,792 KB
testcase_09 AC 70 ms
71,152 KB
testcase_10 AC 69 ms
71,148 KB
testcase_11 AC 71 ms
71,152 KB
testcase_12 AC 70 ms
71,024 KB
testcase_13 AC 209 ms
173,576 KB
testcase_14 AC 106 ms
98,276 KB
testcase_15 AC 186 ms
152,104 KB
testcase_16 AC 198 ms
164,428 KB
testcase_17 AC 127 ms
100,536 KB
testcase_18 AC 100 ms
95,624 KB
testcase_19 AC 206 ms
173,968 KB
testcase_20 AC 87 ms
85,596 KB
testcase_21 AC 115 ms
104,344 KB
testcase_22 AC 130 ms
101,928 KB
testcase_23 AC 192 ms
141,704 KB
testcase_24 AC 188 ms
141,748 KB
testcase_25 AC 192 ms
141,636 KB
testcase_26 AC 190 ms
141,728 KB
testcase_27 AC 192 ms
141,864 KB
testcase_28 AC 71 ms
71,200 KB
testcase_29 AC 70 ms
71,240 KB
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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