백준(BOJ) 풀이

[백준 1085] 직사각형에서 탈출

오호라-노이혼 2019. 11. 15. 08:47

x,y,w,h=map(int, input().split())
print(min(x,y,w-x,h-y))