結果

問題 No.1299 Random Array Score
ユーザー NoneNone
提出日時 2021-02-23 00:57:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 121 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 81,628 KB
実行使用メモリ 107,036 KB
最終ジャッジ日時 2023-10-21 18:50:18
合計ジャッジ時間 4,305 ms
ジャッジサーバーID
(参考情報)
judge12 / judge9
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,332 KB
testcase_01 AC 36 ms
53,332 KB
testcase_02 AC 38 ms
53,332 KB
testcase_03 AC 93 ms
101,296 KB
testcase_04 AC 87 ms
107,036 KB
testcase_05 AC 74 ms
96,744 KB
testcase_06 AC 69 ms
91,588 KB
testcase_07 AC 70 ms
93,924 KB
testcase_08 AC 87 ms
107,012 KB
testcase_09 AC 41 ms
59,404 KB
testcase_10 AC 56 ms
76,696 KB
testcase_11 AC 43 ms
62,412 KB
testcase_12 AC 66 ms
89,192 KB
testcase_13 AC 83 ms
105,492 KB
testcase_14 AC 67 ms
89,344 KB
testcase_15 AC 69 ms
91,636 KB
testcase_16 AC 70 ms
91,588 KB
testcase_17 AC 45 ms
65,748 KB
testcase_18 AC 59 ms
80,388 KB
testcase_19 AC 60 ms
82,428 KB
testcase_20 AC 51 ms
72,608 KB
testcase_21 AC 41 ms
59,404 KB
testcase_22 AC 46 ms
66,340 KB
testcase_23 AC 68 ms
91,524 KB
testcase_24 AC 73 ms
96,704 KB
testcase_25 AC 66 ms
89,316 KB
testcase_26 AC 40 ms
59,404 KB
testcase_27 AC 47 ms
67,048 KB
testcase_28 AC 44 ms
65,272 KB
testcase_29 AC 48 ms
68,540 KB
testcase_30 AC 66 ms
89,084 KB
testcase_31 AC 48 ms
68,668 KB
testcase_32 AC 83 ms
105,348 KB
testcase_33 AC 94 ms
102,220 KB
testcase_34 AC 70 ms
95,672 KB
testcase_35 AC 94 ms
102,220 KB
testcase_36 AC 69 ms
95,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD=998244353

N,K=map(int, input().split())
A=list(map(int, input().split()))
S=sum(A)
print((S+S*(pow(2,K,MOD)-1))%MOD)
0