#abc234b. B - Longest Segment
B - Longest Segment
Score : points
问题描述
在二维平面上有 个点。第 个点的坐标为 。
找出连接这其中任意两点的线段的最大长度。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
There are points in a two-dimensional plane. The coordinates of the -th point are .
Find the maximum length of a segment connecting two of these points.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the maximum length of a segment connecting two of the points.
Your answer will be considered correct when the absolute or relative error from the judge's answer is at most .
Sample Input 1
3
0 0
0 1
1 1
Sample Output 1
1.4142135624
For the -st and -rd points, the length of the segment connecting them is , which is the maximum length.
Sample Input 2
5
315 271
-2 -621
-205 -511
-952 482
165 463
Sample Output 2
1455.7159750446
update @ 2024/3/10 10:09:52