#P5549. [BJ United Round #3] 观察星象
[BJ United Round #3] 观察星象
Problem Description
EI is using a telescope to observe stars. There are stars in the sky, and each star has a 2D Cartesian coordinate .
If the telescope is positioned at , it can see all stars satisfying .
The telescope size can be adjusted. EI wants to know: if he wants to see at least stars, what is the minimum value to set to?
Input Format
The first line contains two positive integers , representing the number of stars and the required number of stars to be seen.
The next lines each contain two integers , representing the coordinate of one star.
It is guaranteed that all star coordinates are pairwise distinct.
Output Format
Output one line containing one positive real number, representing the minimum radius of the telescope.
Let your answer be and the standard answer be . If (i.e., the absolute error or relative error does not exceed ), then your answer is accepted.
4 3
0 0
1 1
2 3
3 3
1.41421356
Hint
| Subtask ID | Score | ||
|---|---|---|---|
For of the testdata, it is guaranteed that:
.
.
By: EntropyIncreaser.
Translated by ChatGPT 5