14173번 풀이 [Python]

sua·2022년 6월 19일
0

Baekjoon

목록 보기
59/161
post-thumbnail

문제


풀이

a, b, c, d = map(int, input().split())
e, f, g, h = map(int, input().split())
n = max(c, g) - min(a, e)
m = max(d, h) - min(b, f)
print(max(n, m) ** 2)
profile
가보자고

0개의 댓글