| UTPC Contest 11-20-24 Div. 1 (Advanced) |
|---|
| Закончено |
A group of $$$n$$$ chicks is waiting in a chicken coop. In order to pass the time, they decide to shake each other's wings. They shake wings according to the following rules:
They would like to minimize the number of rounds needed. In addition, because their wing aren't fully grown yet, they want to minimize the maximum distance between any two chicks who shake wings (while still minimizing the number of rounds). Output the number of rounds needed, and because they like integers, output the square of the minimum maximum wing-shake distance.
The first line contains a single integer $$$n$$$ ($$$2 \leq n \leq 18$$$) — the number of chicks.
The next $$$n$$$ lines contain two space-separated integers $$$x$$$ and $$$y$$$ ($$$1 \leq x, y \leq 10^3$$$) — denoting that there is a chick at location $$$(x, y)$$$. It is guaranteed that all pairs of points are distinct.
On a single line, output two integers — the minimum number of rounds needed and the minimum maximum wing-shake distance needed.
31 12 23 2
2 2
In the sample, it is optimal for chick 1 and chick 2 to shake hands on the first round and chick 2 and chick 3 to shake hands on the second round.
| Название |
|---|


