結果

問題 No.1299 Random Array Score
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2020-11-27 22:05:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 1,890 ms
コンパイル使用メモリ 86,736 KB
実行使用メモリ 103,780 KB
最終ジャッジ日時 2023-10-01 06:01:03
合計ジャッジ時間 6,116 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,220 KB
testcase_01 AC 73 ms
71,280 KB
testcase_02 AC 71 ms
71,052 KB
testcase_03 AC 129 ms
100,380 KB
testcase_04 AC 125 ms
100,052 KB
testcase_05 AC 108 ms
101,112 KB
testcase_06 AC 105 ms
97,500 KB
testcase_07 AC 105 ms
97,864 KB
testcase_08 AC 125 ms
100,024 KB
testcase_09 AC 79 ms
75,684 KB
testcase_10 AC 90 ms
86,784 KB
testcase_11 AC 78 ms
76,512 KB
testcase_12 AC 100 ms
95,352 KB
testcase_13 AC 123 ms
101,468 KB
testcase_14 AC 103 ms
95,348 KB
testcase_15 AC 100 ms
97,580 KB
testcase_16 AC 99 ms
97,692 KB
testcase_17 AC 78 ms
77,880 KB
testcase_18 AC 94 ms
88,348 KB
testcase_19 AC 96 ms
90,484 KB
testcase_20 AC 86 ms
82,728 KB
testcase_21 AC 78 ms
75,560 KB
testcase_22 AC 83 ms
78,568 KB
testcase_23 AC 105 ms
97,548 KB
testcase_24 AC 108 ms
100,636 KB
testcase_25 AC 100 ms
95,420 KB
testcase_26 AC 76 ms
75,684 KB
testcase_27 AC 82 ms
79,248 KB
testcase_28 AC 78 ms
77,408 KB
testcase_29 AC 82 ms
80,948 KB
testcase_30 AC 100 ms
95,116 KB
testcase_31 AC 86 ms
81,076 KB
testcase_32 AC 123 ms
101,868 KB
testcase_33 AC 130 ms
99,196 KB
testcase_34 AC 105 ms
103,780 KB
testcase_35 AC 123 ms
99,516 KB
testcase_36 AC 106 ms
103,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
a = list(map(int,input().split()))
mod = 998244353
s = sum(a)%mod
print(pow(2,k,mod)*s%mod)

0