結果

問題 No.1299 Random Array Score
ユーザー ut00aut00a
提出日時 2020-11-27 22:08:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 544 bytes
コンパイル時間 532 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 101,996 KB
最終ジャッジ日時 2023-10-01 06:10:27
合計ジャッジ時間 5,939 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,268 KB
testcase_01 AC 73 ms
71,248 KB
testcase_02 AC 80 ms
71,320 KB
testcase_03 AC 126 ms
100,672 KB
testcase_04 AC 122 ms
100,152 KB
testcase_05 AC 108 ms
91,484 KB
testcase_06 AC 102 ms
89,544 KB
testcase_07 AC 100 ms
89,948 KB
testcase_08 AC 118 ms
99,836 KB
testcase_09 AC 76 ms
75,580 KB
testcase_10 AC 87 ms
82,844 KB
testcase_11 AC 78 ms
76,556 KB
testcase_12 AC 94 ms
88,216 KB
testcase_13 AC 117 ms
100,464 KB
testcase_14 AC 99 ms
88,492 KB
testcase_15 AC 99 ms
89,596 KB
testcase_16 AC 98 ms
89,664 KB
testcase_17 AC 80 ms
77,236 KB
testcase_18 AC 90 ms
83,812 KB
testcase_19 AC 92 ms
85,164 KB
testcase_20 AC 85 ms
80,268 KB
testcase_21 AC 77 ms
75,884 KB
testcase_22 AC 81 ms
77,760 KB
testcase_23 AC 102 ms
89,688 KB
testcase_24 AC 107 ms
91,460 KB
testcase_25 AC 97 ms
88,308 KB
testcase_26 AC 77 ms
75,688 KB
testcase_27 AC 80 ms
78,096 KB
testcase_28 AC 79 ms
77,152 KB
testcase_29 AC 82 ms
79,100 KB
testcase_30 AC 96 ms
88,064 KB
testcase_31 AC 83 ms
79,292 KB
testcase_32 AC 118 ms
101,996 KB
testcase_33 AC 123 ms
99,112 KB
testcase_34 AC 97 ms
91,776 KB
testcase_35 AC 122 ms
98,976 KB
testcase_36 AC 99 ms
91,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin

def str_in():
    return stdin.readline().rstrip()

def int_in():
    return int(stdin.readline().rstrip())

def split_str_in():
    return stdin.readline().rstrip().split()

def split_int_in():
    return [int(x) for x in stdin.readline().rstrip().split()]

def mod_pow(x, n, mod):
    if n == 0:
        return 1
    res = mod_pow(x * x % mod, n // 2, mod)
    if n & 1:
        return res * x % mod
    return res

mod = 998244353
N, K = split_int_in()
A = split_int_in()
s = sum(A)
print(s * mod_pow(2, K, mod) % mod)
0