Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- m = int(input())
- x = int(input())
- y = int(input())
- if m>n:
- n, m = m, n
- if m>x and n>y:
- print(min(x, y, n-y, m-x))
- else:
- print(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement