Skip to content

Instantly share code, notes, and snippets.

@ASRSim13
Created November 25, 2015 08:26
Show Gist options
  • Select an option

  • Save ASRSim13/e160797b6e3cb2edc69c to your computer and use it in GitHub Desktop.

Select an option

Save ASRSim13/e160797b6e3cb2edc69c to your computer and use it in GitHub Desktop.

Revisions

  1. ASRSim13 created this gist Nov 25, 2015.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    x1=int(input())
    y1=int(input())
    x2=int(input())
    y2=int(input())
    if (x2==x1+1 or x2==x1-1 or x2==x1)and(y2==y1+1 or y2==y1-1 or y2==y1):
    print('YES')
    else:
    print('NO')