結果

問題 No.1325 Subsequence Score
ユーザー H3PO4H3PO4
提出日時 2020-12-22 00:19:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,290 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 11,856 KB
実行使用メモリ 67,084 KB
最終ジャッジ日時 2023-10-21 12:11:55
合計ジャッジ時間 14,937 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,052 KB
testcase_01 AC 27 ms
10,052 KB
testcase_02 AC 28 ms
10,052 KB
testcase_03 AC 31 ms
10,188 KB
testcase_04 AC 27 ms
10,128 KB
testcase_05 AC 28 ms
10,252 KB
testcase_06 AC 26 ms
10,104 KB
testcase_07 AC 26 ms
10,188 KB
testcase_08 AC 26 ms
10,052 KB
testcase_09 AC 25 ms
10,068 KB
testcase_10 AC 25 ms
10,084 KB
testcase_11 AC 25 ms
10,104 KB
testcase_12 AC 26 ms
10,148 KB
testcase_13 AC 1,168 ms
66,268 KB
testcase_14 AC 338 ms
25,044 KB
testcase_15 AC 1,038 ms
55,532 KB
testcase_16 AC 1,095 ms
62,096 KB
testcase_17 AC 489 ms
32,740 KB
testcase_18 AC 295 ms
23,200 KB
testcase_19 AC 1,290 ms
65,560 KB
testcase_20 AC 156 ms
16,992 KB
testcase_21 AC 414 ms
28,576 KB
testcase_22 AC 517 ms
33,068 KB
testcase_23 AC 1,248 ms
65,840 KB
testcase_24 AC 1,219 ms
67,084 KB
testcase_25 AC 1,247 ms
67,084 KB
testcase_26 AC 1,224 ms
67,084 KB
testcase_27 AC 1,212 ms
67,084 KB
testcase_28 AC 28 ms
10,052 KB
testcase_29 AC 25 ms
10,052 KB
testcase_30 AC 26 ms
10,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = tuple(map(int, input().split()))
MOD = 998244353
ans = 0
for i, a in enumerate(A):
    ans += a * (i + 2) * pow(2, N - 2, MOD)
    ans %= MOD
print(ans)
0