結果
| 問題 | No.609 Noelちゃんと星々 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-19 13:20:56 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 173 bytes |
| 記録 | |
| コンパイル時間 | 385 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 35,616 KB |
| 最終ジャッジ日時 | 2026-05-30 10:46:26 |
| 合計ジャッジ時間 | 7,235 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 24 |
ソースコード
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))