結果

問題 No.1299 Random Array Score
ユーザー NatsubiSoganNatsubiSogan
提出日時 2020-11-27 22:34:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 103,908 KB
最終ジャッジ日時 2023-10-09 20:35:58
合計ジャッジ時間 5,719 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,160 KB
testcase_01 AC 72 ms
71,536 KB
testcase_02 AC 74 ms
71,600 KB
testcase_03 AC 125 ms
100,652 KB
testcase_04 AC 123 ms
100,036 KB
testcase_05 AC 110 ms
101,216 KB
testcase_06 AC 103 ms
97,776 KB
testcase_07 AC 105 ms
98,188 KB
testcase_08 AC 125 ms
100,040 KB
testcase_09 AC 80 ms
75,868 KB
testcase_10 AC 90 ms
86,856 KB
testcase_11 AC 77 ms
76,772 KB
testcase_12 AC 103 ms
95,428 KB
testcase_13 AC 124 ms
101,900 KB
testcase_14 AC 103 ms
95,516 KB
testcase_15 AC 103 ms
97,828 KB
testcase_16 AC 103 ms
97,780 KB
testcase_17 AC 81 ms
78,432 KB
testcase_18 AC 93 ms
88,684 KB
testcase_19 AC 95 ms
90,656 KB
testcase_20 AC 86 ms
82,940 KB
testcase_21 AC 77 ms
75,864 KB
testcase_22 AC 83 ms
78,560 KB
testcase_23 AC 103 ms
98,024 KB
testcase_24 AC 107 ms
101,072 KB
testcase_25 AC 100 ms
95,568 KB
testcase_26 AC 75 ms
75,932 KB
testcase_27 AC 81 ms
79,512 KB
testcase_28 AC 78 ms
77,668 KB
testcase_29 AC 81 ms
81,216 KB
testcase_30 AC 98 ms
95,272 KB
testcase_31 AC 83 ms
81,276 KB
testcase_32 AC 125 ms
101,972 KB
testcase_33 AC 126 ms
99,440 KB
testcase_34 AC 109 ms
103,908 KB
testcase_35 AC 126 ms
99,412 KB
testcase_36 AC 108 ms
103,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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