Problem Statement
There are $N$ people and $N$ buttons on a plane. The plane has an origin, and the coordinates $(x, y)$ represents the position that is $x$ meters east and $y$ meters north of the origin. The $i$‑th person $(1 \le i \le N)$ starts at $(\mathit{sx}_i,\mathit{sy}_i)$. The $i$‑th button $(1 \le i \le N)$ is located at $(\mathit{gx}_i,\mathit{gy}_i)$.
The people want to move and press these $N$ buttons simultaneously. A button can be pressed only by a person who is at the same coordinate as that button. The time required to press a button after reaching its coordinate is $0$ seconds.
Each person can move in any direction with speed at most $1$ meter per second. More formally, if the position of the $i$‑th person $t$ seconds after the start is $(x_i(t), y_i(t))$, all of the following must hold:
$x_i(0) = \mathit{sx}_i$;$y_i(0) = \mathit{sy}_i$;- For all non‑negative real numbers
$t_0, t_1$, the distance between$(x_i(t_0), y_i(t_0))$and$(x_i(t_1), y_i(t_1))$is at most$|t_0 - t_1|$.
Find the time required for the people to achieve the goal. Formally, find the minimum $t$ that satisfies the following condition:
- It is possible to set
$x_i$and$y_i$under the above conditions so that, for every integer$j\ (1\leq j\leq N)$and every real number$t ^ \prime\ (t ^ \prime\gt t)$, there exists an integer$i\ (1\leq i\leq N)$with$(x _ i(t ^ \prime),y _ i(t ^ \prime))=(\mathit{gx} _ j,\mathit{gy} _ j)$.
Constraints
$1\leq N\leq 300$$0\leq\mathit{sx} _ i\leq10 ^ {18}\ (1\leq i\leq N)$$0\leq\mathit{sy} _ i\leq10 ^ {18}\ (1\leq i\leq N)$$0\leq\mathit{gx} _ i\leq10 ^ {18}\ (1\leq i\leq N)$$0\leq\mathit{gy} _ i\leq10 ^ {18}\ (1\leq i\leq N)$$(\mathit{sx} _ i,\mathit{sy} _ i)\neq(\mathit{sx} _ j,\mathit{sy} _ j)\ (1\leq i\lt j\leq N)$$(\mathit{gx} _ i,\mathit{gy} _ i)\neq(\mathit{gx} _ j,\mathit{gy} _ j)\ (1\leq i\lt j\leq N)$$(\mathit{sx} _ i,\mathit{sy} _ i)\neq(\mathit{gx} _ j,\mathit{gy} _ j)\ (1\leq i\leq N,1\leq j\leq N)$- All input values are integers.
Input
The input is given from Standard Input in the following format:
N
\mathit{sx}_1 \mathit{sy}_1
\mathit{sx}_2 \mathit{sy}_2
\vdots
\mathit{sx}_N \mathit{sy}_N
\mathit{gx}_1 \mathit{gy}_1
\mathit{gx}_2 \mathit{gy}_2
\vdots
\mathit{gx}_N \mathit{gy}_N
Output
Print the time required for the $N$ people to press the $N$ buttons simultaneously. Your output is considered correct if the relative error from the true value is at most $10^{-6}$.
样例
4
0 0
0 1
2 0
3 1
0 2
1 0
1 2
2 2
2
3
1 4
1 5
9 2
653589793238462643 383279502884197169
399375105820974944 592307816406286208
99862803482534211 706798214808651328
757682516069002110.04581169374262658710741005525
12
4459915897 5789359311
4393259463 4247016333
4827828467 4179021045
2654035685 3406423989
1790405301 4886103164
2978675817 4818583236
5912369644 5824121992
6016882384 4165667191
4305949638 3454894060
6545166942 5390976281
4043403253 4019611554
3462096432 4117859301
3528911877 4631601790
4627979431 4814676729
3810130146 5728760563
5586470124 3310360339
3664130072 4525834271
1710246881 3750440871
3143440609 5038869551
2294021341 3965849888
6189106395 4499485672
4799619607 5151972020
6905793542 3976136296
1764267574 4525373194
1299999319.116399442508650717909981965254
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。