AdvancedRating 1700
Closest Pair of Points
Print the squared distance between the two closest points (points may repeat).
Input
n (≥ 2), then n lines 'x y'.
Output
One integer.
Sample 1
Input
4 0 0 5 5 1 1 9 9
Output
2
Sample 2
Input
2 3 3 3 3
Output
0
Output appears here