SHARE
TWEET

Untitled

Denis_T3 Jul 19th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. x1 = int(input())
  2. y1 = int(input())
  3. x2 = int(input())
  4. y2 = int(input())
  5.  
  6. if x1 == x2 + 1 or x1 == x2 - 1 or y1 == y2 + 1 or y1 == y2 - 1 or (x1 == x2 - 1 and  y1 == y2 - 1) or (x1 == x2 + 1 and  y1 == y2 + 1) or (x1 == x2 - 1 and y1 == y2 + 1) or (x1 == x2 + 1 and y1 == y2 - 1):
  7.     print("YES")
  8. else:
  9.     print("NO")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top