結果

問題 No.1299 Random Array Score
ユーザー tktk_snsntktk_snsn
提出日時 2020-11-27 23:13:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 354 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 29,956 KB
最終ジャッジ日時 2023-10-09 21:05:55
合計ジャッジ時間 3,780 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,760 KB
testcase_01 AC 16 ms
7,760 KB
testcase_02 AC 15 ms
7,872 KB
testcase_03 AC 82 ms
29,820 KB
testcase_04 AC 78 ms
29,180 KB
testcase_05 AC 65 ms
24,484 KB
testcase_06 AC 58 ms
22,508 KB
testcase_07 AC 63 ms
23,228 KB
testcase_08 AC 79 ms
29,128 KB
testcase_09 AC 18 ms
8,712 KB
testcase_10 AC 40 ms
16,336 KB
testcase_11 AC 22 ms
9,976 KB
testcase_12 AC 56 ms
21,708 KB
testcase_13 AC 80 ms
28,788 KB
testcase_14 AC 59 ms
22,328 KB
testcase_15 AC 59 ms
22,504 KB
testcase_16 AC 59 ms
22,564 KB
testcase_17 AC 25 ms
10,716 KB
testcase_18 AC 43 ms
17,132 KB
testcase_19 AC 48 ms
18,652 KB
testcase_20 AC 33 ms
13,544 KB
testcase_21 AC 17 ms
8,204 KB
testcase_22 AC 26 ms
11,304 KB
testcase_23 AC 60 ms
22,248 KB
testcase_24 AC 65 ms
24,460 KB
testcase_25 AC 58 ms
22,216 KB
testcase_26 AC 16 ms
8,212 KB
testcase_27 AC 26 ms
11,740 KB
testcase_28 AC 24 ms
10,516 KB
testcase_29 AC 29 ms
12,584 KB
testcase_30 AC 57 ms
21,568 KB
testcase_31 AC 30 ms
12,796 KB
testcase_32 AC 78 ms
28,544 KB
testcase_33 AC 85 ms
29,868 KB
testcase_34 AC 51 ms
11,444 KB
testcase_35 AC 84 ms
29,956 KB
testcase_36 AC 51 ms
11,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353

n, k = map(int, input().split())
A = list(map(int, input().split()))
S = sum(A) % mod

ans = S + S * (pow(2, k, mod) - 1) % mod
print(ans % mod)
0