当前位置: 代码迷 >> 综合 >> P1740 Ink on paper
  详细解决方案

P1740 Ink on paper

热度:55   发布时间:2023-12-13 05:11:32.0

题目描述

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 nn (2≤n≤5000), indicating the number of ink on the paper. Each of the next n lines contains 2 integers  indicating that xx and yy coordinates of the ink.

输出描述

For each test case, output one line containing one decimal, denoting the answer.

样例输入

Copy to Clipboard
2 3 0 0 1 1 0 1 5 1 1 4 5 1 4 2 6 3 10 

样例输出

Copy to Clipboard</
  相关解决方案