Skip to content

Commit 26a0e45

Browse files
author
IsHYuhi
committed
add ARC004A
1 parent 26cd834 commit 26a0e45

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ARC/ARC004/A.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import math
2+
n = int(input())
3+
xy = [list(map(int, input().split())) for _ in range(n)]
4+
ans = 0
5+
for i in range(n-1):
6+
for j in range(i+1, n):
7+
ans = max(ans, math.sqrt((xy[i][0]-xy[j][0])**2 + (xy[i][1]-xy[j][1])**2))
8+
print(ans)

0 commit comments

Comments
 (0)