Problem 3801 --Ink on paper

3801: Ink on paper

"
Time Limit $5$ 秒/Second(s) Memory Limit $128$ 兆字节/Megabyte(s)
提交总数 $12$ 正确数量 $0$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签 最小生成树
Bob accidentally spilled some drops of ink on the paper. The initial position of the i-th drop of ink is (xi,yi), which expands outward by 0.5 centimeter per second, showing a circle.
The curious Bob wants to know how long it will take for all the inks to become connected. In order to facilitate the output, please output the square of the time.
The first line of input contains one integer T(1≤T≤5), indicating the number of test cases.
For each test case, the first line contains one integer n(2≤n≤5000), indicating the number of ink on the paper.
Each of the next n lines contains 2 integers (xi,yi)(|xi|≤109,|yi|≤109), indicating that x and y coordinates of the ink.
 
For each test case, output one line containing one decimal, denoting the answer.
2
3
0 0
1 1
0 1
5
1 1
4 5
1 4
2 6
3 10
1
17

推荐代码 查看3801 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$ $ms]
内存最少[$ $KB]
第一AC
第一挑战 minder 1101604 2024-05-06 14:24:21

赛题来源/所属竞赛 N/A

竞赛编号 竞赛名称 竞赛时间 访问比赛