Advertisement
draligamer7Snakify

queen move

Oct 11th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. x1 = int(input())
  2. y1 = int(input())
  3. x2 = int(input())
  4. y2 = int(input())
  5. if abs(x1 - x2) == abs(y1 - y2) or x1 == x2 or y1 == y2:
  6. print('YES')
  7. else:
  8. print('NO')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement