結果

問題 No.1299 Random Array Score
ユーザー ayaoniayaoni
提出日時 2020-11-27 23:36:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 87,112 KB
実行使用メモリ 103,980 KB
最終ジャッジ日時 2023-10-10 21:48:01
合計ジャッジ時間 5,729 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,424 KB
testcase_01 AC 71 ms
71,296 KB
testcase_02 AC 75 ms
71,428 KB
testcase_03 AC 124 ms
100,600 KB
testcase_04 AC 124 ms
100,180 KB
testcase_05 AC 107 ms
100,952 KB
testcase_06 AC 103 ms
97,760 KB
testcase_07 AC 105 ms
98,048 KB
testcase_08 AC 127 ms
100,140 KB
testcase_09 AC 78 ms
75,820 KB
testcase_10 AC 94 ms
87,128 KB
testcase_11 AC 79 ms
76,960 KB
testcase_12 AC 101 ms
95,304 KB
testcase_13 AC 125 ms
101,816 KB
testcase_14 AC 104 ms
95,668 KB
testcase_15 AC 105 ms
97,884 KB
testcase_16 AC 105 ms
97,776 KB
testcase_17 AC 81 ms
78,080 KB
testcase_18 AC 93 ms
88,628 KB
testcase_19 AC 97 ms
90,720 KB
testcase_20 AC 86 ms
82,904 KB
testcase_21 AC 78 ms
75,928 KB
testcase_22 AC 83 ms
78,664 KB
testcase_23 AC 106 ms
97,848 KB
testcase_24 AC 109 ms
100,912 KB
testcase_25 AC 104 ms
95,604 KB
testcase_26 AC 78 ms
75,900 KB
testcase_27 AC 83 ms
79,392 KB
testcase_28 AC 83 ms
77,728 KB
testcase_29 AC 85 ms
80,936 KB
testcase_30 AC 102 ms
95,360 KB
testcase_31 AC 84 ms
81,008 KB
testcase_32 AC 126 ms
101,728 KB
testcase_33 AC 127 ms
99,392 KB
testcase_34 AC 109 ms
103,980 KB
testcase_35 AC 126 ms
99,400 KB
testcase_36 AC 107 ms
103,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))


N,K = MI()
A = LI()
mod = 998244353

ans = sum(A)*pow(2,K,mod)
ans %= mod
print(ans)
0