結果

問題 No.1325 Subsequence Score
ユーザー flippergo
提出日時 2020-12-31 00:08:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 153,984 KB
最終ジャッジ日時 2024-10-08 08:02:43
合計ジャッジ時間 4,331 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

p = 998244353
N = int(input())
A = list(map(int,input().split()))
A.insert(0,0)
a = 1
i = 0
while i<N-2:
    a = (a*2)%p
    i += 1
b = 0
for i in range(1,N+1):
    b = (b+(i+1)*A[i])%p
ans = (a*b)%p
print(ans)
0