最遥远的距离
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Background
lh与qk都在雷峰塔下,但是却见不到对方,对lh来说这就是最遥远的距离
Description
咱们把西湖抽象成平面,平面上有n个不同的点
两个点的曼哈顿距离定义为:
两个点的欧⼏⾥得距离定义为:
两点之间的真实距离定义为:
lh 与 qk 可能在任意两个点上,最大化他们的距离。
Format
Input
输⼊第⼀⾏,包含1个正整数,表述数据组数。 对于每组数据,第⼀⾏给定正整数 。 之后n⾏,每⾏给出 表示一个点。
Output
输出⼀⾏,包含⼀个实数,表示答案,保留8位⼩数
Samples
2
2
0 0
0 1
3
1 1
2 3
5 8
1.00000000
1.37198868
Limitation
1s, 1024KiB for each test case.
SDNU_ACM_ICPC_2024秋季结训赛
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 12
- Start at
- 2024-12-15 12:00
- End at
- 2024-12-15 16:00
- Duration
- 4 hour(s)
- Host
- Partic.
- 41