結果
問題 |
No.2550 MORE! JUMP! MORE!
|
ユーザー |
![]() |
提出日時 | 2025-02-23 08:34:51 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 258 bytes |
コンパイル時間 | 457 ms |
コンパイル使用メモリ | 82,212 KB |
実行使用メモリ | 113,260 KB |
最終ジャッジ日時 | 2025-02-23 08:34:59 |
合計ジャッジ時間 | 6,982 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 39 WA * 1 |
ソースコード
n=int(input()) a=list(map(int,input().split())) M=998244353 two=[1] for i in range(n): two+=[two[-1]*2%M] c=0 c+=a[0]*two[n-2] c%=M for i in range(1,n-1): c+=(i*two[i-1]+two[i])*a[i]*two[n-i-1-1] c%=M c+=((n-1)*two[n-1-1]+two[n-1])*a[n-1] c%=M print(c)