Current work
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
n = int(input())
|
||||
|
||||
xs = [int(x) for x in input().split()]
|
||||
ys = [int(y) for y in input().split()]
|
||||
coords = list(zip(xs, ys))
|
||||
|
||||
maximum_distance = 0
|
||||
for i in range(n - 1):
|
||||
for j in range(i + 1, n):
|
||||
x, y = coords[i]
|
||||
xx, yy = coords[j]
|
||||
distance = (x - xx) * (x - xx) + (y - yy) * (y - yy)
|
||||
maximum_distance = max(distance, maximum_distance)
|
||||
|
||||
print(maximum_distance)
|
||||
Reference in New Issue
Block a user