#P1429. 平面最近点对(加强版)

平面最近点对(加强版)

Description

Given nn points in the plane, find the minimum distance among all pairs of points.

Input Format

The first line contains nn, with 2n2000002 \le n \le 200000.

Each of the next nn lines contains two integers xx and yy, the xx-coordinate and yy-coordinate of a point, separated by a single space.

Output Format

Output a single real number on one line: the shortest distance, rounded to 44 decimal places.

3
1 1
1 2
2 2
1.0000

Hint

The testdata guarantees 0x,y1090 \le x, y \le 10^9.

Translated by ChatGPT 5