結果

問題 No.1325 Subsequence Score
ユーザー H3PO4H3PO4
提出日時 2020-12-22 00:28:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,366 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 725 ms
コンパイル使用メモリ 11,796 KB
実行使用メモリ 66,948 KB
最終ジャッジ日時 2023-10-21 12:13:43
合計ジャッジ時間 17,049 ms
ジャッジサーバーID
(参考情報)
judge9 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,064 KB
testcase_01 AC 30 ms
10,064 KB
testcase_02 AC 32 ms
10,064 KB
testcase_03 AC 32 ms
10,180 KB
testcase_04 AC 31 ms
10,136 KB
testcase_05 AC 35 ms
10,252 KB
testcase_06 AC 33 ms
10,120 KB
testcase_07 AC 34 ms
10,192 KB
testcase_08 AC 30 ms
10,064 KB
testcase_09 AC 31 ms
10,076 KB
testcase_10 AC 31 ms
10,096 KB
testcase_11 AC 31 ms
10,120 KB
testcase_12 AC 32 ms
10,148 KB
testcase_13 AC 1,268 ms
66,004 KB
testcase_14 AC 359 ms
25,048 KB
testcase_15 AC 1,101 ms
55,200 KB
testcase_16 AC 1,202 ms
63,492 KB
testcase_17 AC 541 ms
32,484 KB
testcase_18 AC 325 ms
22,928 KB
testcase_19 AC 1,366 ms
66,712 KB
testcase_20 AC 176 ms
16,992 KB
testcase_21 AC 465 ms
28,580 KB
testcase_22 AC 568 ms
33,060 KB
testcase_23 AC 1,339 ms
66,948 KB
testcase_24 AC 1,341 ms
66,820 KB
testcase_25 AC 1,342 ms
66,820 KB
testcase_26 AC 1,331 ms
66,820 KB
testcase_27 AC 1,339 ms
66,820 KB
testcase_28 AC 31 ms
10,124 KB
testcase_29 AC 30 ms
10,064 KB
testcase_30 AC 30 ms
10,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,*A=map(int,open(0).read().split())
M=998244353
r=0
for i in range(N):r+=A[i]*(i+2)*pow(2,N-2,M);r%=M
print(r)
0