#백준1085번
x,y,w,h = map(int,(input().split()))
min = x
if (w-x)<min:min=(w-x)
if y<min:min=y
if (h-y)<min:min=(h-y)
print(min)
#백준1085번 다른풀이
x,y,w,h = map(int,(input().split()))
print(min(x,y,w-x,h-y))
split() 함수
문자열의 끝에 .split("뭐시기")를 붙이면,
=>문자열을 '뭐시기'를 기반으로 나누어, 새로운 리스트를 리턴한다.
(인자를 아무것도 안넣고 그냥 .split()을 붙이면, 문자열을 공백(whitespace)을 기반으로 나누어, 리스트를 리턴)
strip() 함수(참고)
문자열의 끝에 .strip()을 붙이면,
=>문자열의 '맨앞'과, '맨뒤' 의 whitespace가 제거가 된다. 단, 중간중간의 whitespace는 제거가 되지 않는다.