728x90
반응형

x, y, w-x, h-y 중 제일 작은 값을 선택하면 된다.

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

728x90
반응형

+ Recent posts