結果

問題 No.1325 Subsequence Score
ユーザー flippergoflippergo
提出日時 2020-12-31 00:07:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 82,120 KB
実行使用メモリ 154,344 KB
最終ジャッジ日時 2024-04-17 00:24:23
合計ジャッジ時間 4,024 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
51,840 KB
testcase_01 AC 31 ms
52,128 KB
testcase_02 AC 31 ms
52,096 KB
testcase_03 AC 38 ms
59,776 KB
testcase_04 AC 34 ms
52,480 KB
testcase_05 AC 38 ms
59,520 KB
testcase_06 AC 33 ms
51,968 KB
testcase_07 AC 38 ms
59,648 KB
testcase_08 AC 33 ms
51,968 KB
testcase_09 AC 32 ms
51,968 KB
testcase_10 AC 32 ms
52,608 KB
testcase_11 AC 33 ms
52,096 KB
testcase_12 AC 34 ms
52,224 KB
testcase_13 AC 138 ms
153,576 KB
testcase_14 AC 66 ms
93,824 KB
testcase_15 AC 118 ms
135,720 KB
testcase_16 AC 127 ms
144,884 KB
testcase_17 AC 92 ms
102,144 KB
testcase_18 AC 63 ms
89,344 KB
testcase_19 AC 134 ms
153,908 KB
testcase_20 AC 52 ms
76,032 KB
testcase_21 AC 76 ms
101,888 KB
testcase_22 AC 95 ms
104,192 KB
testcase_23 AC 143 ms
153,708 KB
testcase_24 AC 141 ms
153,840 KB
testcase_25 AC 138 ms
153,960 KB
testcase_26 AC 145 ms
154,344 KB
testcase_27 AC 135 ms
154,044 KB
testcase_28 WA -
testcase_29 AC 33 ms
51,968 KB
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

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