結果

問題 No.1299 Random Array Score
ユーザー ibyiby
提出日時 2020-11-28 19:49:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 133 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 29,964 KB
最終ジャッジ日時 2023-10-10 01:01:14
合計ジャッジ時間 3,999 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,788 KB
testcase_01 AC 15 ms
7,908 KB
testcase_02 AC 16 ms
7,744 KB
testcase_03 AC 81 ms
29,764 KB
testcase_04 AC 77 ms
29,108 KB
testcase_05 AC 64 ms
24,564 KB
testcase_06 AC 58 ms
22,520 KB
testcase_07 AC 62 ms
23,204 KB
testcase_08 AC 78 ms
29,096 KB
testcase_09 AC 18 ms
8,828 KB
testcase_10 AC 39 ms
16,236 KB
testcase_11 AC 22 ms
9,964 KB
testcase_12 AC 56 ms
21,788 KB
testcase_13 AC 75 ms
28,908 KB
testcase_14 AC 58 ms
22,344 KB
testcase_15 AC 58 ms
22,564 KB
testcase_16 AC 58 ms
22,376 KB
testcase_17 AC 24 ms
10,624 KB
testcase_18 AC 42 ms
17,168 KB
testcase_19 AC 47 ms
18,696 KB
testcase_20 AC 32 ms
13,564 KB
testcase_21 AC 16 ms
8,312 KB
testcase_22 AC 24 ms
11,276 KB
testcase_23 AC 58 ms
22,240 KB
testcase_24 AC 63 ms
24,364 KB
testcase_25 AC 58 ms
22,240 KB
testcase_26 AC 17 ms
8,300 KB
testcase_27 AC 26 ms
11,876 KB
testcase_28 AC 23 ms
10,592 KB
testcase_29 AC 29 ms
12,464 KB
testcase_30 AC 56 ms
21,452 KB
testcase_31 AC 30 ms
12,820 KB
testcase_32 AC 77 ms
28,484 KB
testcase_33 AC 82 ms
29,964 KB
testcase_34 AC 50 ms
11,388 KB
testcase_35 AC 84 ms
29,812 KB
testcase_36 AC 50 ms
11,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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