結果
問題 |
No.609 Noelちゃんと星々
|
ユーザー |
|
提出日時 | 2018-11-19 13:20:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 173 bytes |
コンパイル時間 | 282 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 34,672 KB |
最終ジャッジ日時 | 2024-12-24 15:14:34 |
合計ジャッジ時間 | 80,108 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 25 |
ソースコード
n = int(input()) l = list(map(int,input().split())) l1 = list(set(l)) l2 = [] for i in l1: x = 0 for j in l: x += abs(i-j) l2.append(x) print(min(l2))