結果

問題 No.1299 Random Array Score
ユーザー ayaoniayaoni
提出日時 2020-11-27 21:52:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 482 ms
コンパイル使用メモリ 86,812 KB
実行使用メモリ 103,672 KB
最終ジャッジ日時 2023-10-01 05:26:42
合計ジャッジ時間 5,948 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,236 KB
testcase_01 AC 70 ms
71,092 KB
testcase_02 AC 74 ms
71,204 KB
testcase_03 AC 135 ms
100,320 KB
testcase_04 AC 126 ms
99,900 KB
testcase_05 AC 108 ms
100,680 KB
testcase_06 AC 104 ms
97,872 KB
testcase_07 AC 105 ms
97,652 KB
testcase_08 AC 124 ms
99,724 KB
testcase_09 AC 76 ms
75,636 KB
testcase_10 AC 89 ms
86,768 KB
testcase_11 AC 77 ms
76,668 KB
testcase_12 AC 100 ms
95,184 KB
testcase_13 AC 124 ms
101,308 KB
testcase_14 AC 101 ms
95,124 KB
testcase_15 AC 102 ms
97,600 KB
testcase_16 AC 104 ms
97,456 KB
testcase_17 AC 80 ms
78,180 KB
testcase_18 AC 93 ms
88,336 KB
testcase_19 AC 95 ms
90,404 KB
testcase_20 AC 85 ms
82,608 KB
testcase_21 AC 75 ms
75,596 KB
testcase_22 AC 80 ms
78,424 KB
testcase_23 AC 105 ms
97,376 KB
testcase_24 AC 108 ms
100,508 KB
testcase_25 AC 101 ms
95,256 KB
testcase_26 AC 76 ms
75,872 KB
testcase_27 AC 82 ms
79,040 KB
testcase_28 AC 80 ms
77,276 KB
testcase_29 AC 82 ms
80,468 KB
testcase_30 AC 102 ms
94,908 KB
testcase_31 AC 82 ms
80,900 KB
testcase_32 AC 124 ms
101,700 KB
testcase_33 AC 126 ms
99,080 KB
testcase_34 AC 106 ms
103,572 KB
testcase_35 AC 125 ms
99,596 KB
testcase_36 AC 106 ms
103,672 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

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