結果

問題 No.1299 Random Array Score
ユーザー toyuzukotoyuzuko
提出日時 2020-12-06 11:06:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 81,716 KB
実行使用メモリ 103,396 KB
最終ジャッジ日時 2023-10-17 12:08:46
合計ジャッジ時間 6,239 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,388 KB
testcase_01 AC 38 ms
53,388 KB
testcase_02 AC 37 ms
53,388 KB
testcase_03 AC 82 ms
102,476 KB
testcase_04 AC 82 ms
102,208 KB
testcase_05 AC 72 ms
92,344 KB
testcase_06 AC 68 ms
89,060 KB
testcase_07 AC 70 ms
89,424 KB
testcase_08 AC 81 ms
102,168 KB
testcase_09 AC 42 ms
59,444 KB
testcase_10 AC 56 ms
75,668 KB
testcase_11 AC 44 ms
62,832 KB
testcase_12 AC 66 ms
86,604 KB
testcase_13 AC 81 ms
102,016 KB
testcase_14 AC 66 ms
86,796 KB
testcase_15 AC 69 ms
89,120 KB
testcase_16 AC 68 ms
89,060 KB
testcase_17 AC 45 ms
64,240 KB
testcase_18 AC 57 ms
77,388 KB
testcase_19 AC 60 ms
79,564 KB
testcase_20 AC 51 ms
71,356 KB
testcase_21 AC 42 ms
59,444 KB
testcase_22 AC 47 ms
64,872 KB
testcase_23 AC 69 ms
88,980 KB
testcase_24 AC 72 ms
92,292 KB
testcase_25 AC 67 ms
86,760 KB
testcase_26 AC 41 ms
59,444 KB
testcase_27 AC 48 ms
65,624 KB
testcase_28 AC 45 ms
63,724 KB
testcase_29 AC 50 ms
67,172 KB
testcase_30 AC 67 ms
86,468 KB
testcase_31 AC 50 ms
67,332 KB
testcase_32 AC 82 ms
101,956 KB
testcase_33 AC 81 ms
103,396 KB
testcase_34 AC 70 ms
96,352 KB
testcase_35 AC 82 ms
103,396 KB
testcase_36 AC 70 ms
96,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import io, os
input = io.BytesIO(os.read(0, os.fstat(0).st_size)).readline

MOD = 998244353

N, K = map(int, input().split())
A = list(map(int, input().split()))

print(sum(A) * pow(2, K, MOD) % MOD)
0