x,y,w,h= map(int,input().split())
print(min(x,y,w-x,h-y))
'백준 풀이' 카테고리의 다른 글
백준 2775 파이썬 (0) | 2022.08.20 |
---|---|
백준 2480번 파이썬 (0) | 2022.08.20 |
백준 1193번 파이썬 (0) | 2022.08.20 |
백준 18108번 파이썬 (0) | 2022.08.18 |
백준 10250번 python (0) | 2022.08.18 |
백준 2775 파이썬 (0) | 2022.08.20 |
---|---|
백준 2480번 파이썬 (0) | 2022.08.20 |
백준 1193번 파이썬 (0) | 2022.08.20 |
백준 18108번 파이썬 (0) | 2022.08.18 |
백준 10250번 python (0) | 2022.08.18 |