結果

問題 No.1299 Random Array Score
ユーザー FromBooskaFromBooska
提出日時 2023-04-16 10:27:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 82,300 KB
実行使用メモリ 107,416 KB
最終ジャッジ日時 2024-04-20 02:16:09
合計ジャッジ時間 4,264 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
52,372 KB
testcase_01 AC 32 ms
52,152 KB
testcase_02 AC 31 ms
53,132 KB
testcase_03 AC 88 ms
101,696 KB
testcase_04 AC 79 ms
107,416 KB
testcase_05 AC 66 ms
96,992 KB
testcase_06 AC 63 ms
91,796 KB
testcase_07 AC 62 ms
93,196 KB
testcase_08 AC 77 ms
107,304 KB
testcase_09 AC 36 ms
60,452 KB
testcase_10 AC 48 ms
76,960 KB
testcase_11 AC 38 ms
63,036 KB
testcase_12 AC 59 ms
89,312 KB
testcase_13 AC 73 ms
105,840 KB
testcase_14 AC 59 ms
90,236 KB
testcase_15 AC 61 ms
92,104 KB
testcase_16 AC 61 ms
92,136 KB
testcase_17 AC 40 ms
65,616 KB
testcase_18 AC 52 ms
79,480 KB
testcase_19 AC 53 ms
82,316 KB
testcase_20 AC 45 ms
73,032 KB
testcase_21 AC 36 ms
59,292 KB
testcase_22 AC 40 ms
65,744 KB
testcase_23 AC 61 ms
91,952 KB
testcase_24 AC 66 ms
96,688 KB
testcase_25 AC 60 ms
89,472 KB
testcase_26 AC 35 ms
58,340 KB
testcase_27 AC 41 ms
66,700 KB
testcase_28 AC 39 ms
65,204 KB
testcase_29 AC 43 ms
68,940 KB
testcase_30 AC 59 ms
89,004 KB
testcase_31 AC 43 ms
69,664 KB
testcase_32 AC 72 ms
105,820 KB
testcase_33 AC 84 ms
102,360 KB
testcase_34 AC 64 ms
97,352 KB
testcase_35 AC 84 ms
102,720 KB
testcase_36 AC 64 ms
97,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 毎ラウンドで2倍になる
N, K = map(int, input().split())
A = list(map(int, input().split()))
mod = 998244353
sumA = sum(A)
POW = pow(2, K, mod)
ans = (sumA*POW)%mod
print(ans)
0