Sichuan University Programming Contest 2005 Final

I: Search Nearest Neighbour