結果

問題 No.609 Noelちゃんと星々
ユーザー konabekonabe
提出日時 2017-12-09 00:39:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 132 bytes
コンパイル時間 412 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 24,368 KB
最終ジャッジ日時 2024-05-07 06:23:12
合計ジャッジ時間 4,135 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
21,516 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 78 ms
17,656 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 86 ms
18,664 KB
testcase_08 AC 59 ms
14,336 KB
testcase_09 AC 74 ms
16,656 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 107 ms
20,980 KB
testcase_13 WA -
testcase_14 AC 56 ms
14,080 KB
testcase_15 WA -
testcase_16 AC 128 ms
24,036 KB
testcase_17 AC 109 ms
21,536 KB
testcase_18 AC 71 ms
16,452 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from statistics import median
N = int(input())
Y = list(map(int, input().split()))
P = median(Y)
print(sum([abs(y - P) for y in Y]))
0