编程介的小学生 2020-02-09 21:39 采纳率: 20.5%
浏览 109

Disconnect 断开连接的问题

Problem Description
An enemy state of our country is occupying an island of ours. They take lots of warships around the island. Communications among the warships are transited by wireless signal, but we have to separate the warships so that at least ONE pair of warships cannot communicate with each other.
For that purpose, we create a kind of Wireless Signal Shielding Device (WSSD) that WSSD can shield the wireless signal in its shielding circle with radius R.
The factories could produce enough WSSDs and our patrol team discovered a lot of places that could be installed with WSSDs. In order to separate the warships, we need to know the minimum value of radius R, smaller R is better because of the cost of manufacture.
Please notice that because of the inflection of wireless signal, two warships can communicate with each other even there is no sight view between them.

Input
The input contains multiply test cases.
The first line of each test case consists of two integers, n, m (0 < n, m <= 10000), which are the number of places where we can install WSSDs and the number of warships. Each of the next n lines contains two integers, indicating the coordinate of the place where we can install WSSDs. The next m lines indicate the coordinates of warships.
The last test case is followed by a single line with two zeros which should not be processed.
Please notice that all the values of coordinates are between -10000 to 10000, and no two coordinates have the same value.

Output
Output the minimum R with two fractional digits.

Sample Input
4 3
-1 0
1 0
0 1
0 -1
10 0
9 0
0 0
4 3
-1 0
1 0
0 1
0 -1
10 0
9 0
-9 0
0 0

Sample Output
0.71
8.00

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!
    • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?