import sys
x, y, w, h = map(int, sys.stdin.readline().split())
if x < w / 2:
if y < h / 2:
print(min(x,y))
else:
print(min(x,h-y))
else:
if y < h / 2:
print(min(w-x,y))
else:
print(min(w-x,h-y))
'๐ Python > ๋ฐฑ์ค' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[10950]A+B-3 (0) | 2022.02.04 |
---|---|
[2739]๊ตฌ๊ตฌ๋จ (0) | 2022.02.04 |
[2753]์ค๋ (0) | 2022.02.03 |
[9498]์ํ์ฑ์ (0) | 2022.02.03 |
[2588]๊ณฑ์ (0) | 2022.02.03 |