#P1429. 平面最近点对(加强版)
平面最近点对(加强版)
Description
Given points in the plane, find the minimum distance among all pairs of points.
Input Format
The first line contains , with .
Each of the next lines contains two integers and , the -coordinate and -coordinate of a point, separated by a single space.
Output Format
Output a single real number on one line: the shortest distance, rounded to decimal places.
3
1 1
1 2
2 2
1.0000
Hint
The testdata guarantees .
Translated by ChatGPT 5
京公网安备 11011102002149号