#P1991. 无线通讯网
无线通讯网
Description
The Ministry of National Defense plans to connect several border outposts with a wireless network using two different communication technologies.
Every outpost must be equipped with a radio transceiver; some outposts can additionally be equipped with satellite phones.
Any two outposts that both have satellite phones can talk to each other, no matter how far apart they are. Outposts that communicate only through radio transceivers must be within a distance of , due to the power limit of the transceivers. The higher the power, the larger becomes, but the cost also increases.
The transceivers must be purchased and installed uniformly, so all outposts can only install one model of transceiver. In other words, the radio communication distance between any pair of outposts is the same . Your task is to determine the minimum radio range such that between every pair of outposts there is at least one communication path (direct or indirect).
Input Format
The first line contains integers and . is the number of outposts that can be equipped with satellite phones, and is the total number of outposts.
Then there are lines. Each line contains two integers that give the planar coordinates of an outpost, in km.
Output Format
Output one real number on the first line, the minimum transmission distance required for the radio transceivers, accurate to two decimal places.
2 4
0 100
0 300
0 600
150 750
212.13
Hint
Constraints
- For of the testdata: , .
- For another of the testdata: , .
- For of the testdata it is guaranteed that , , .
Translated by ChatGPT 5
京公网安备 11011102002149号