当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

7058:Ink on paper

题目描述
Bob accidentally spilled some drops of ink on the paper. The initial position of the i-th drop of ink is $(x_i,y_i)$, 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\leq T \leq5)$, indicating the number of test cases.
For each test case, the first line contains one integer $n(2\leq n \leq5000)$, indicating the number of ink on the paper.
Each of the next n lines contains $2$ integers $(x_i,y_i)$(|$x_i$|$\leq10^9$,|$y_i$|$\leq10^9$), 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

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-7058

最后修改于 2021-10-23T19:11:14+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
20000/10000MS(Java/Others) 524288/524288K(Java/Others)