結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,284 KB
testcase_01 AC 74 ms
71,192 KB
testcase_02 AC 73 ms
71,444 KB
testcase_03 AC 127 ms
100,344 KB
testcase_04 AC 125 ms
100,008 KB
testcase_05 AC 108 ms
100,808 KB
testcase_06 AC 103 ms
97,764 KB
testcase_07 AC 105 ms
97,824 KB
testcase_08 AC 125 ms
99,900 KB
testcase_09 AC 75 ms
75,600 KB
testcase_10 AC 91 ms
86,864 KB
testcase_11 AC 78 ms
76,548 KB
testcase_12 AC 101 ms
95,500 KB
testcase_13 AC 124 ms
101,764 KB
testcase_14 AC 99 ms
95,528 KB
testcase_15 AC 102 ms
97,988 KB
testcase_16 AC 103 ms
97,704 KB
testcase_17 AC 81 ms
78,200 KB
testcase_18 AC 91 ms
88,780 KB
testcase_19 AC 96 ms
90,488 KB
testcase_20 AC 84 ms
82,700 KB
testcase_21 AC 76 ms
75,768 KB
testcase_22 AC 81 ms
78,472 KB
testcase_23 AC 104 ms
97,536 KB
testcase_24 AC 107 ms
100,672 KB
testcase_25 AC 102 ms
95,420 KB
testcase_26 AC 75 ms
75,644 KB
testcase_27 AC 81 ms
79,172 KB
testcase_28 AC 79 ms
77,904 KB
testcase_29 AC 81 ms
80,864 KB
testcase_30 AC 99 ms
95,048 KB
testcase_31 AC 85 ms
80,792 KB
testcase_32 AC 124 ms
101,632 KB
testcase_33 AC 127 ms
99,296 KB
testcase_34 AC 106 ms
103,808 KB
testcase_35 AC 125 ms
99,184 KB
testcase_36 AC 107 ms
103,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


ave = sum(a) * pow(n, MOD - 2, MOD) % MOD
ans = pow(2, k, MOD) * ave * n % MOD
print(ans)
0