結果

問題 No.1325 Subsequence Score
ユーザー 👑 KazunKazun
提出日時 2020-12-22 00:12:00
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 179 bytes
コンパイル時間 1,803 ms
コンパイル使用メモリ 81,564 KB
実行使用メモリ 179,156 KB
最終ジャッジ日時 2023-10-21 12:10:26
合計ジャッジ時間 5,792 ms
ジャッジサーバーID
(参考情報)
judge9 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,516 KB
testcase_01 AC 38 ms
53,440 KB
testcase_02 AC 38 ms
53,440 KB
testcase_03 AC 48 ms
61,976 KB
testcase_04 AC 41 ms
53,444 KB
testcase_05 AC 46 ms
61,976 KB
testcase_06 AC 39 ms
53,444 KB
testcase_07 AC 45 ms
61,976 KB
testcase_08 AC 37 ms
53,444 KB
testcase_09 AC 37 ms
53,444 KB
testcase_10 AC 39 ms
53,444 KB
testcase_11 AC 39 ms
53,444 KB
testcase_12 AC 40 ms
53,444 KB
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline

N=int(input())
A=[0]+list(map(int,input().split()))
Mod=998244353

X=0
for i in range(1,N+1):
    X+=pow(2,N-2)*(i+1)*A[i]
    X%=Mod
print(X)
0