結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
51,968 KB
testcase_01 AC 43 ms
51,712 KB
testcase_02 AC 41 ms
51,968 KB
testcase_03 AC 48 ms
59,392 KB
testcase_04 AC 42 ms
52,352 KB
testcase_05 AC 48 ms
60,032 KB
testcase_06 AC 43 ms
52,352 KB
testcase_07 AC 49 ms
59,520 KB
testcase_08 AC 41 ms
51,840 KB
testcase_09 AC 41 ms
52,096 KB
testcase_10 AC 43 ms
52,224 KB
testcase_11 AC 42 ms
52,224 KB
testcase_12 AC 41 ms
51,968 KB
testcase_13 AC 170 ms
153,460 KB
testcase_14 AC 78 ms
93,184 KB
testcase_15 AC 148 ms
135,744 KB
testcase_16 AC 150 ms
145,068 KB
testcase_17 AC 102 ms
102,408 KB
testcase_18 AC 73 ms
88,832 KB
testcase_19 AC 156 ms
154,168 KB
testcase_20 AC 60 ms
75,520 KB
testcase_21 AC 87 ms
101,768 KB
testcase_22 AC 109 ms
103,956 KB
testcase_23 AC 156 ms
153,832 KB
testcase_24 AC 158 ms
153,580 KB
testcase_25 AC 163 ms
153,696 KB
testcase_26 AC 175 ms
153,836 KB
testcase_27 AC 180 ms
153,692 KB
testcase_28 WA -
testcase_29 AC 44 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