結果

問題 No.1299 Random Array Score
ユーザー MineMine
提出日時 2021-01-28 17:34:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 128 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 10,464 KB
実行使用メモリ 29,916 KB
最終ジャッジ日時 2023-09-08 08:43:17
合計ジャッジ時間 5,957 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,708 KB
testcase_01 AC 15 ms
7,764 KB
testcase_02 AC 15 ms
7,756 KB
testcase_03 AC 80 ms
29,916 KB
testcase_04 AC 77 ms
29,116 KB
testcase_05 AC 63 ms
24,456 KB
testcase_06 AC 58 ms
22,452 KB
testcase_07 AC 60 ms
23,168 KB
testcase_08 AC 76 ms
29,148 KB
testcase_09 AC 18 ms
8,816 KB
testcase_10 AC 39 ms
16,252 KB
testcase_11 AC 22 ms
10,048 KB
testcase_12 AC 56 ms
21,772 KB
testcase_13 AC 76 ms
28,748 KB
testcase_14 AC 57 ms
22,328 KB
testcase_15 AC 59 ms
22,664 KB
testcase_16 AC 58 ms
22,500 KB
testcase_17 AC 23 ms
10,624 KB
testcase_18 AC 42 ms
17,084 KB
testcase_19 AC 46 ms
18,748 KB
testcase_20 AC 32 ms
13,552 KB
testcase_21 AC 16 ms
8,248 KB
testcase_22 AC 25 ms
11,328 KB
testcase_23 AC 57 ms
22,456 KB
testcase_24 AC 64 ms
24,376 KB
testcase_25 AC 56 ms
22,280 KB
testcase_26 AC 16 ms
8,288 KB
testcase_27 AC 26 ms
11,776 KB
testcase_28 AC 23 ms
10,400 KB
testcase_29 AC 28 ms
12,416 KB
testcase_30 AC 54 ms
21,544 KB
testcase_31 AC 29 ms
12,672 KB
testcase_32 AC 75 ms
28,364 KB
testcase_33 AC 81 ms
29,760 KB
testcase_34 AC 50 ms
11,204 KB
testcase_35 AC 82 ms
29,708 KB
testcase_36 AC 51 ms
11,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

s = sum(a)
print(s * pow(2, k, mod) % mod)
0