結果

問題 No.1299 Random Array Score
ユーザー eijiroueijirou
提出日時 2020-11-27 21:42:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 86,980 KB
実行使用メモリ 103,624 KB
最終ジャッジ日時 2023-10-01 05:10:49
合計ジャッジ時間 5,892 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,412 KB
testcase_01 AC 73 ms
71,220 KB
testcase_02 AC 73 ms
71,300 KB
testcase_03 AC 129 ms
100,392 KB
testcase_04 AC 127 ms
99,896 KB
testcase_05 AC 110 ms
100,864 KB
testcase_06 AC 106 ms
97,772 KB
testcase_07 AC 108 ms
97,936 KB
testcase_08 AC 123 ms
100,116 KB
testcase_09 AC 76 ms
75,896 KB
testcase_10 AC 89 ms
86,576 KB
testcase_11 AC 77 ms
76,700 KB
testcase_12 AC 99 ms
95,100 KB
testcase_13 AC 120 ms
101,856 KB
testcase_14 AC 99 ms
95,128 KB
testcase_15 AC 105 ms
97,452 KB
testcase_16 AC 100 ms
97,772 KB
testcase_17 AC 78 ms
77,856 KB
testcase_18 AC 89 ms
88,352 KB
testcase_19 AC 93 ms
90,788 KB
testcase_20 AC 82 ms
82,644 KB
testcase_21 AC 74 ms
75,604 KB
testcase_22 AC 79 ms
78,484 KB
testcase_23 AC 99 ms
97,436 KB
testcase_24 AC 110 ms
100,924 KB
testcase_25 AC 103 ms
95,484 KB
testcase_26 AC 79 ms
75,812 KB
testcase_27 AC 84 ms
79,184 KB
testcase_28 AC 81 ms
77,320 KB
testcase_29 AC 85 ms
80,600 KB
testcase_30 AC 101 ms
95,076 KB
testcase_31 AC 84 ms
80,692 KB
testcase_32 AC 122 ms
101,556 KB
testcase_33 AC 122 ms
99,112 KB
testcase_34 AC 104 ms
103,596 KB
testcase_35 AC 124 ms
99,032 KB
testcase_36 AC 104 ms
103,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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