16 lines
395 B
Python
16 lines
395 B
Python
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)
|