結果

問題 No.1299 Random Array Score
ユーザー 小野寺健小野寺健
提出日時 2021-05-29 13:55:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 130 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 32,660 KB
最終ジャッジ日時 2024-04-25 10:57:35
合計ジャッジ時間 4,314 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,752 KB
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 27 ms
10,752 KB
testcase_03 AC 92 ms
32,568 KB
testcase_04 AC 89 ms
31,904 KB
testcase_05 AC 81 ms
27,212 KB
testcase_06 AC 70 ms
25,300 KB
testcase_07 AC 75 ms
25,996 KB
testcase_08 AC 97 ms
31,700 KB
testcase_09 AC 28 ms
11,264 KB
testcase_10 AC 51 ms
19,108 KB
testcase_11 AC 33 ms
12,628 KB
testcase_12 AC 67 ms
24,484 KB
testcase_13 AC 91 ms
31,216 KB
testcase_14 AC 68 ms
24,888 KB
testcase_15 AC 68 ms
25,268 KB
testcase_16 AC 69 ms
25,164 KB
testcase_17 AC 34 ms
13,324 KB
testcase_18 AC 53 ms
19,796 KB
testcase_19 AC 62 ms
21,292 KB
testcase_20 AC 45 ms
16,192 KB
testcase_21 AC 28 ms
10,880 KB
testcase_22 AC 36 ms
13,828 KB
testcase_23 AC 69 ms
25,052 KB
testcase_24 AC 75 ms
26,908 KB
testcase_25 AC 68 ms
24,732 KB
testcase_26 AC 26 ms
11,008 KB
testcase_27 AC 37 ms
14,416 KB
testcase_28 AC 34 ms
13,276 KB
testcase_29 AC 37 ms
15,124 KB
testcase_30 AC 62 ms
24,020 KB
testcase_31 AC 39 ms
15,552 KB
testcase_32 AC 89 ms
31,256 KB
testcase_33 AC 91 ms
32,660 KB
testcase_34 AC 61 ms
14,584 KB
testcase_35 AC 114 ms
32,536 KB
testcase_36 AC 63 ms
13,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

M = 998244353

ans = (sum(A) * pow(2, K, M)) % M

print(ans)
0