Current work

This commit is contained in:
2026-08-03 19:03:58 +01:00
parent b48299efb7
commit a79ff12290
46 changed files with 1345 additions and 0 deletions
+15
View File
@@ -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)