結果

問題 No.609 Noelちゃんと星々
ユーザー H3PO4H3PO4
提出日時 2020-10-10 09:07:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 170 ms / 2,000 ms
コード長 122 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 40,644 KB
最終ジャッジ日時 2023-09-27 21:08:37
合計ジャッジ時間 8,011 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 155 ms
37,712 KB
testcase_01 AC 142 ms
33,472 KB
testcase_02 AC 134 ms
32,204 KB
testcase_03 AC 142 ms
33,368 KB
testcase_04 AC 132 ms
31,728 KB
testcase_05 AC 164 ms
39,532 KB
testcase_06 AC 158 ms
38,412 KB
testcase_07 AC 142 ms
35,028 KB
testcase_08 AC 129 ms
31,064 KB
testcase_09 AC 138 ms
32,792 KB
testcase_10 AC 147 ms
36,052 KB
testcase_11 AC 151 ms
35,468 KB
testcase_12 AC 153 ms
37,200 KB
testcase_13 AC 126 ms
31,432 KB
testcase_14 AC 124 ms
30,432 KB
testcase_15 AC 163 ms
38,576 KB
testcase_16 AC 164 ms
40,172 KB
testcase_17 AC 154 ms
37,720 KB
testcase_18 AC 135 ms
32,740 KB
testcase_19 AC 160 ms
38,648 KB
testcase_20 AC 169 ms
40,644 KB
testcase_21 AC 170 ms
40,548 KB
testcase_22 AC 169 ms
40,584 KB
testcase_23 AC 169 ms
40,564 KB
testcase_24 AC 167 ms
40,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

N = int(input())
Y = np.array(list(map(int, input().split())))
print(sum(abs(Y - int(np.median(Y)))))
0