結果
| 問題 |
No.1325 Subsequence Score
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-31 00:07:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 210 bytes |
| コンパイル時間 | 261 ms |
| コンパイル使用メモリ | 82,244 KB |
| 実行使用メモリ | 154,016 KB |
| 最終ジャッジ日時 | 2024-10-08 08:03:16 |
| 合計ジャッジ時間 | 4,294 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 WA * 2 |
ソースコード
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)