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