結果

問題 No.1325 Subsequence Score
ユーザー りあんりあん
提出日時 2020-12-22 04:54:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 248 ms / 2,000 ms
コード長 133 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 11,808 KB
実行使用メモリ 52,160 KB
最終ジャッジ日時 2023-10-21 12:25:02
合計ジャッジ時間 4,783 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,088 KB
testcase_01 AC 28 ms
10,088 KB
testcase_02 AC 28 ms
10,088 KB
testcase_03 AC 30 ms
10,192 KB
testcase_04 AC 29 ms
10,144 KB
testcase_05 AC 30 ms
10,236 KB
testcase_06 AC 29 ms
10,124 KB
testcase_07 AC 29 ms
10,188 KB
testcase_08 AC 29 ms
10,088 KB
testcase_09 AC 29 ms
10,100 KB
testcase_10 AC 29 ms
10,112 KB
testcase_11 AC 29 ms
10,124 KB
testcase_12 AC 29 ms
10,160 KB
testcase_13 AC 241 ms
51,560 KB
testcase_14 AC 87 ms
21,020 KB
testcase_15 AC 205 ms
42,944 KB
testcase_16 AC 228 ms
47,612 KB
testcase_17 AC 116 ms
26,424 KB
testcase_18 AC 79 ms
19,528 KB
testcase_19 AC 240 ms
50,020 KB
testcase_20 AC 56 ms
15,036 KB
testcase_21 AC 100 ms
23,432 KB
testcase_22 AC 118 ms
26,744 KB
testcase_23 AC 241 ms
50,036 KB
testcase_24 AC 244 ms
52,160 KB
testcase_25 AC 244 ms
52,160 KB
testcase_26 AC 248 ms
52,160 KB
testcase_27 AC 246 ms
52,160 KB
testcase_28 AC 29 ms
10,088 KB
testcase_29 AC 29 ms
10,088 KB
testcase_30 AC 28 ms
10,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M = 998244353
n = int(input())
a = map(int, input().split())
print(sum((i + 2) * x for i, x in enumerate(a)) * pow(2, n - 2, M) % M)
0