結果

問題 No.1299 Random Array Score
ユーザー aqua_tenhouaqua_tenhou
提出日時 2020-11-27 21:59:59
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 29,944 KB
最終ジャッジ日時 2023-10-01 05:44:45
合計ジャッジ時間 3,884 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,804 KB
testcase_01 AC 16 ms
7,824 KB
testcase_02 AC 16 ms
7,756 KB
testcase_03 AC 81 ms
29,768 KB
testcase_04 AC 79 ms
29,140 KB
testcase_05 AC 64 ms
24,444 KB
testcase_06 AC 59 ms
22,524 KB
testcase_07 AC 63 ms
23,212 KB
testcase_08 AC 79 ms
29,016 KB
testcase_09 AC 17 ms
8,700 KB
testcase_10 AC 40 ms
16,368 KB
testcase_11 AC 22 ms
9,988 KB
testcase_12 AC 57 ms
21,744 KB
testcase_13 AC 79 ms
28,756 KB
testcase_14 AC 59 ms
22,372 KB
testcase_15 AC 63 ms
22,604 KB
testcase_16 AC 59 ms
22,416 KB
testcase_17 AC 24 ms
10,696 KB
testcase_18 AC 43 ms
17,068 KB
testcase_19 AC 48 ms
18,580 KB
testcase_20 AC 32 ms
13,512 KB
testcase_21 AC 17 ms
8,228 KB
testcase_22 AC 26 ms
11,228 KB
testcase_23 AC 59 ms
22,388 KB
testcase_24 AC 64 ms
24,576 KB
testcase_25 AC 58 ms
22,220 KB
testcase_26 AC 17 ms
8,340 KB
testcase_27 AC 27 ms
11,868 KB
testcase_28 AC 24 ms
10,548 KB
testcase_29 AC 30 ms
12,468 KB
testcase_30 AC 56 ms
21,512 KB
testcase_31 AC 30 ms
12,676 KB
testcase_32 AC 78 ms
28,424 KB
testcase_33 AC 84 ms
29,944 KB
testcase_34 AC 50 ms
11,384 KB
testcase_35 AC 85 ms
29,936 KB
testcase_36 AC 51 ms
11,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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