結果

問題 No.1299 Random Array Score
ユーザー chineristACchineristAC
提出日時 2020-11-27 22:28:51
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 877 ms
コンパイル使用メモリ 87,260 KB
実行使用メモリ 103,996 KB
最終ジャッジ日時 2023-10-09 20:31:34
合計ジャッジ時間 6,512 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,528 KB
testcase_01 AC 76 ms
71,472 KB
testcase_02 AC 74 ms
71,388 KB
testcase_03 AC 129 ms
100,332 KB
testcase_04 AC 127 ms
99,860 KB
testcase_05 AC 109 ms
100,820 KB
testcase_06 AC 105 ms
97,812 KB
testcase_07 AC 103 ms
98,000 KB
testcase_08 AC 125 ms
100,004 KB
testcase_09 AC 77 ms
75,968 KB
testcase_10 AC 88 ms
86,948 KB
testcase_11 AC 78 ms
76,768 KB
testcase_12 AC 102 ms
95,420 KB
testcase_13 AC 125 ms
101,788 KB
testcase_14 AC 102 ms
95,472 KB
testcase_15 AC 103 ms
97,864 KB
testcase_16 AC 104 ms
97,844 KB
testcase_17 AC 80 ms
78,088 KB
testcase_18 AC 92 ms
88,476 KB
testcase_19 AC 95 ms
90,616 KB
testcase_20 AC 85 ms
82,920 KB
testcase_21 AC 77 ms
76,092 KB
testcase_22 AC 82 ms
78,612 KB
testcase_23 AC 104 ms
97,844 KB
testcase_24 AC 107 ms
100,828 KB
testcase_25 AC 100 ms
95,548 KB
testcase_26 AC 74 ms
75,748 KB
testcase_27 AC 80 ms
79,448 KB
testcase_28 AC 79 ms
77,552 KB
testcase_29 AC 84 ms
80,908 KB
testcase_30 AC 102 ms
95,340 KB
testcase_31 AC 83 ms
80,972 KB
testcase_32 AC 126 ms
102,128 KB
testcase_33 AC 129 ms
99,364 KB
testcase_34 AC 108 ms
103,948 KB
testcase_35 AC 129 ms
99,520 KB
testcase_36 AC 109 ms
103,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
A = list(map(int,input().split()))
mod = 998244353

S = sum(A)
S %= mod
res = pow(2,K,mod)
res %= mod
res *= S
res %= mod

print(res)
0