結果
| 問題 |
No.3084 Identify f(x)
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 15:28:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 137 bytes |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 82,248 KB |
| 実行使用メモリ | 85,460 KB |
| 最終ジャッジ日時 | 2025-06-12 15:28:35 |
| 合計ジャッジ時間 | 6,681 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 6 |
ソースコード
n = int(input()) a = list(map(int, input().split())) a.sort() median = a[n // 2] total = sum(abs(num - median) for num in a) print(total)
gew1fw