luogu#P1429. 平面最近点对(加强版)
平面最近点对(加强版)
Background
P7883 Closest Pair of Points in the Plane (Enhanced-Enhanced Version)
Problem 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