結果

問題 No.1325 Subsequence Score
ユーザー 👑 KazunKazun
提出日時 2020-12-22 00:13:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 415 ms
コンパイル使用メモリ 81,636 KB
実行使用メモリ 157,412 KB
最終ジャッジ日時 2023-10-21 12:10:48
合計ジャッジ時間 4,314 ms
ジャッジサーバーID
(参考情報)
judge11 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,372 KB
testcase_01 AC 37 ms
53,372 KB
testcase_02 AC 39 ms
53,372 KB
testcase_03 AC 43 ms
59,868 KB
testcase_04 AC 38 ms
53,372 KB
testcase_05 AC 43 ms
59,868 KB
testcase_06 AC 38 ms
53,372 KB
testcase_07 AC 43 ms
59,868 KB
testcase_08 AC 38 ms
53,372 KB
testcase_09 AC 38 ms
53,372 KB
testcase_10 AC 38 ms
53,372 KB
testcase_11 AC 38 ms
53,372 KB
testcase_12 AC 39 ms
53,372 KB
testcase_13 AC 150 ms
157,032 KB
testcase_14 AC 73 ms
94,048 KB
testcase_15 AC 135 ms
138,888 KB
testcase_16 AC 143 ms
147,752 KB
testcase_17 AC 100 ms
100,344 KB
testcase_18 AC 68 ms
89,176 KB
testcase_19 AC 152 ms
157,336 KB
testcase_20 AC 56 ms
75,456 KB
testcase_21 AC 82 ms
100,796 KB
testcase_22 AC 103 ms
102,512 KB
testcase_23 AC 152 ms
157,408 KB
testcase_24 AC 153 ms
157,412 KB
testcase_25 AC 152 ms
157,412 KB
testcase_26 AC 152 ms
157,412 KB
testcase_27 AC 150 ms
157,412 KB
testcase_28 WA -
testcase_29 AC 38 ms
53,372 KB
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline

N=int(input())
A=[0]+list(map(int,input().split()))
Mod=998244353

X=0
for i in range(1,N+1):
    X+=(i+1)*A[i]
    X%=Mod
print((X*pow(2,N-2))%Mod)
0