結果

問題 No.1299 Random Array Score
ユーザー lloyzlloyz
提出日時 2022-01-29 16:59:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 29,888 KB
最終ジャッジ日時 2023-08-30 16:45:52
合計ジャッジ時間 5,812 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,800 KB
testcase_01 AC 15 ms
7,840 KB
testcase_02 AC 15 ms
7,920 KB
testcase_03 AC 79 ms
29,888 KB
testcase_04 AC 74 ms
29,224 KB
testcase_05 AC 61 ms
24,628 KB
testcase_06 AC 56 ms
22,648 KB
testcase_07 AC 57 ms
23,408 KB
testcase_08 AC 74 ms
29,076 KB
testcase_09 AC 17 ms
8,680 KB
testcase_10 AC 38 ms
16,256 KB
testcase_11 AC 21 ms
10,200 KB
testcase_12 AC 54 ms
21,812 KB
testcase_13 AC 73 ms
28,800 KB
testcase_14 AC 55 ms
22,452 KB
testcase_15 AC 56 ms
22,624 KB
testcase_16 AC 55 ms
22,456 KB
testcase_17 AC 23 ms
10,692 KB
testcase_18 AC 40 ms
17,100 KB
testcase_19 AC 45 ms
18,736 KB
testcase_20 AC 30 ms
13,692 KB
testcase_21 AC 16 ms
8,388 KB
testcase_22 AC 23 ms
11,368 KB
testcase_23 AC 54 ms
22,408 KB
testcase_24 AC 62 ms
24,424 KB
testcase_25 AC 55 ms
22,260 KB
testcase_26 AC 16 ms
8,284 KB
testcase_27 AC 25 ms
11,932 KB
testcase_28 AC 22 ms
10,728 KB
testcase_29 AC 28 ms
12,472 KB
testcase_30 AC 53 ms
21,604 KB
testcase_31 AC 28 ms
12,860 KB
testcase_32 AC 72 ms
28,472 KB
testcase_33 AC 77 ms
29,828 KB
testcase_34 AC 49 ms
11,268 KB
testcase_35 AC 79 ms
29,840 KB
testcase_36 AC 49 ms
11,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())
A = list(map(int, input().split()))
mod = 998244353

sumA = sum(A) % mod
print(sumA * pow(2, k, mod) % mod)
0