728x90
반응형

단순 수학 문제이다.

x1, y1, x2, y2 = map(int, input().split())
x3, y3, x4, y4 = map(int, input().split())
X = max(x2, x4) - min(x1, x3)
Y = max(y2, y4) - min(y1, y3)
print(max(X, Y)**2)
728x90
반응형

+ Recent posts