結果

問題 No.1299 Random Array Score
ユーザー とりゐとりゐ
提出日時 2022-11-10 00:42:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 116 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 103,564 KB
最終ジャッジ日時 2023-09-30 11:24:35
合計ジャッジ時間 7,127 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,056 KB
testcase_01 AC 73 ms
70,584 KB
testcase_02 AC 72 ms
70,944 KB
testcase_03 AC 127 ms
100,196 KB
testcase_04 AC 124 ms
99,764 KB
testcase_05 AC 107 ms
100,392 KB
testcase_06 AC 103 ms
97,340 KB
testcase_07 AC 105 ms
97,784 KB
testcase_08 AC 123 ms
99,460 KB
testcase_09 AC 78 ms
75,612 KB
testcase_10 AC 93 ms
86,464 KB
testcase_11 AC 81 ms
76,384 KB
testcase_12 AC 103 ms
95,160 KB
testcase_13 AC 123 ms
101,312 KB
testcase_14 AC 104 ms
95,108 KB
testcase_15 AC 106 ms
97,292 KB
testcase_16 AC 103 ms
97,348 KB
testcase_17 AC 80 ms
77,572 KB
testcase_18 AC 94 ms
88,380 KB
testcase_19 AC 95 ms
90,152 KB
testcase_20 AC 88 ms
82,436 KB
testcase_21 AC 78 ms
75,284 KB
testcase_22 AC 82 ms
78,432 KB
testcase_23 AC 105 ms
97,280 KB
testcase_24 AC 109 ms
100,340 KB
testcase_25 AC 104 ms
94,888 KB
testcase_26 AC 78 ms
75,364 KB
testcase_27 AC 84 ms
78,776 KB
testcase_28 AC 82 ms
76,988 KB
testcase_29 AC 86 ms
80,408 KB
testcase_30 AC 103 ms
94,648 KB
testcase_31 AC 85 ms
80,656 KB
testcase_32 AC 124 ms
101,596 KB
testcase_33 AC 126 ms
98,868 KB
testcase_34 AC 107 ms
103,500 KB
testcase_35 AC 125 ms
98,748 KB
testcase_36 AC 106 ms
103,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
a=list(map(int,input().split()))

mod=998244353
s=sum(a)%mod
print(s*pow(2,k,mod)%mod)
0