結果

問題 No.1299 Random Array Score
ユーザー trineutrontrineutron
提出日時 2020-11-27 21:30:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 128 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 29,908 KB
最終ジャッジ日時 2023-10-01 04:48:18
合計ジャッジ時間 4,222 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,976 KB
testcase_01 AC 16 ms
7,832 KB
testcase_02 AC 16 ms
7,864 KB
testcase_03 AC 79 ms
29,768 KB
testcase_04 AC 79 ms
29,052 KB
testcase_05 AC 65 ms
24,596 KB
testcase_06 AC 58 ms
22,588 KB
testcase_07 AC 63 ms
23,196 KB
testcase_08 AC 81 ms
29,160 KB
testcase_09 AC 19 ms
8,780 KB
testcase_10 AC 44 ms
16,288 KB
testcase_11 AC 24 ms
9,996 KB
testcase_12 AC 60 ms
21,700 KB
testcase_13 AC 79 ms
28,784 KB
testcase_14 AC 60 ms
22,396 KB
testcase_15 AC 61 ms
22,512 KB
testcase_16 AC 60 ms
22,564 KB
testcase_17 AC 26 ms
10,784 KB
testcase_18 AC 44 ms
17,100 KB
testcase_19 AC 48 ms
18,720 KB
testcase_20 AC 34 ms
13,552 KB
testcase_21 AC 18 ms
8,364 KB
testcase_22 AC 27 ms
11,292 KB
testcase_23 AC 60 ms
22,320 KB
testcase_24 AC 67 ms
24,528 KB
testcase_25 AC 59 ms
22,204 KB
testcase_26 AC 18 ms
8,220 KB
testcase_27 AC 28 ms
11,892 KB
testcase_28 AC 25 ms
10,596 KB
testcase_29 AC 30 ms
12,520 KB
testcase_30 AC 56 ms
21,512 KB
testcase_31 AC 31 ms
12,728 KB
testcase_32 AC 80 ms
28,568 KB
testcase_33 AC 86 ms
29,908 KB
testcase_34 AC 52 ms
11,284 KB
testcase_35 AC 85 ms
29,836 KB
testcase_36 AC 52 ms
11,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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