#P1257. 平面上的最接近点对
平面上的最接近点对
Description
Given points in the plane, find the distance between a pair of points such that among all pairs of these points, this distance is the smallest.
Input Format
The first line contains an integer , denoting the number of points. The next lines each contain two integers , representing the and coordinates of a point.
Output Format
Output a single line containing a real number, which is the shortest distance, rounded to decimal places.
3
1 1
1 2
2 2
1.0000
Hint
Constraints
For of the testdata, it is guaranteed that , .
Translated by ChatGPT 5
京公网安备 11011102002149号