Hi all!
Straightly to the problem — you are given a set of N (1 < N < = 105) distinct points with integer coordinates on coordinate plane. For each point you need to find number of closest point to it (from set, expect itself). If there are more than one output point with minimum number. - 104 < = xi, yi < = 104
UPD Distance between points (x1, y1) and (x2, y2) is equal to |x1 - x2| + |y1 - y2|. :P
Input
4
0 0
1 1
1 0
0 1
Output
3 3 1 1