Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. n = int(input())
  2. m = int(input())
  3. x = int(input())
  4. y = int(input())
  5.  
  6. if m>n:
  7. n, m = m, n
  8.  
  9. if m>x and n>y:
  10. print(min(x, y, n-y, m-x))
  11. else:
  12. print(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement