結果
問題 |
No.609 Noelちゃんと星々
|
ユーザー |
|
提出日時 | 2017-12-09 01:00:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 125 ms / 2,000 ms |
コード長 | 171 bytes |
コンパイル時間 | 105 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 24,740 KB |
最終ジャッジ日時 | 2024-11-29 21:53:40 |
合計ジャッジ時間 | 3,596 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
import math from statistics import median_low, median_high N = int(input()) Y = list(map(int, input().split())) P = median_high(Y) print(int(sum([abs(y - P) for y in Y])))