結果

問題 No.1299 Random Array Score
ユーザー Eki1009Eki1009
提出日時 2020-11-28 02:23:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 598 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 30,276 KB
最終ジャッジ日時 2023-10-09 23:21:36
合計ジャッジ時間 4,220 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,844 KB
testcase_01 AC 16 ms
7,808 KB
testcase_02 AC 18 ms
7,936 KB
testcase_03 AC 82 ms
30,120 KB
testcase_04 AC 79 ms
29,496 KB
testcase_05 AC 66 ms
24,908 KB
testcase_06 AC 59 ms
22,856 KB
testcase_07 AC 65 ms
23,368 KB
testcase_08 AC 80 ms
29,444 KB
testcase_09 AC 17 ms
8,768 KB
testcase_10 AC 40 ms
16,440 KB
testcase_11 AC 22 ms
10,024 KB
testcase_12 AC 58 ms
22,104 KB
testcase_13 AC 77 ms
29,164 KB
testcase_14 AC 59 ms
22,260 KB
testcase_15 AC 60 ms
22,920 KB
testcase_16 AC 63 ms
22,688 KB
testcase_17 AC 24 ms
10,700 KB
testcase_18 AC 43 ms
17,228 KB
testcase_19 AC 48 ms
19,084 KB
testcase_20 AC 32 ms
13,632 KB
testcase_21 AC 16 ms
8,284 KB
testcase_22 AC 24 ms
11,212 KB
testcase_23 AC 56 ms
22,360 KB
testcase_24 AC 63 ms
24,660 KB
testcase_25 AC 58 ms
22,280 KB
testcase_26 AC 16 ms
8,416 KB
testcase_27 AC 26 ms
11,800 KB
testcase_28 AC 23 ms
10,636 KB
testcase_29 AC 28 ms
12,496 KB
testcase_30 AC 55 ms
21,568 KB
testcase_31 AC 29 ms
12,812 KB
testcase_32 AC 76 ms
28,980 KB
testcase_33 AC 83 ms
30,276 KB
testcase_34 AC 52 ms
11,832 KB
testcase_35 AC 82 ms
30,100 KB
testcase_36 AC 52 ms
11,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353
n, k = map(int, input().split())
A = tuple(map(int, input().split()))
s = sum(A)
ans = s * pow(2, k, mod) % mod
print(ans)
0