結果

問題 No.1299 Random Array Score
ユーザー HAPPAHAPPA
提出日時 2020-11-28 11:38:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 324 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 10,576 KB
実行使用メモリ 30,692 KB
最終ジャッジ日時 2023-10-09 23:49:35
合計ジャッジ時間 3,597 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,780 KB
testcase_01 AC 16 ms
7,864 KB
testcase_02 AC 16 ms
7,816 KB
testcase_03 AC 77 ms
29,896 KB
testcase_04 AC 76 ms
29,364 KB
testcase_05 AC 63 ms
24,480 KB
testcase_06 AC 56 ms
22,748 KB
testcase_07 AC 60 ms
23,496 KB
testcase_08 AC 75 ms
29,212 KB
testcase_09 AC 17 ms
8,712 KB
testcase_10 AC 39 ms
16,268 KB
testcase_11 AC 22 ms
10,276 KB
testcase_12 AC 54 ms
21,872 KB
testcase_13 AC 73 ms
28,652 KB
testcase_14 AC 55 ms
22,160 KB
testcase_15 AC 56 ms
22,804 KB
testcase_16 AC 56 ms
22,692 KB
testcase_17 AC 24 ms
10,884 KB
testcase_18 AC 42 ms
17,044 KB
testcase_19 AC 46 ms
18,612 KB
testcase_20 AC 32 ms
13,724 KB
testcase_21 AC 16 ms
8,252 KB
testcase_22 AC 25 ms
11,052 KB
testcase_23 AC 56 ms
22,284 KB
testcase_24 AC 62 ms
24,328 KB
testcase_25 AC 56 ms
22,092 KB
testcase_26 AC 16 ms
8,356 KB
testcase_27 AC 26 ms
11,784 KB
testcase_28 AC 23 ms
10,736 KB
testcase_29 AC 28 ms
12,436 KB
testcase_30 AC 54 ms
21,568 KB
testcase_31 AC 30 ms
13,000 KB
testcase_32 AC 77 ms
29,432 KB
testcase_33 AC 80 ms
30,692 KB
testcase_34 AC 49 ms
11,276 KB
testcase_35 AC 80 ms
30,564 KB
testcase_36 AC 50 ms
11,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10 ** 7)
input = sys.stdin.readline
f_inf = float('inf')
mod = 998244353


def resolve():
    n, k = map(int, input().split())
    A = list(map(int, input().split()))
    total = sum(A) % mod

    res = pow(2, k, mod) * total % mod
    print(res)


if __name__ == '__main__':
    resolve()
0