NurikMN's blog

By NurikMN, history, 6 years ago, In Russian

include

include

using namespace std; int x,y,q,w; int main() { cin>>x>>y>>q>>w; if (x-2==q && y+1==w) cout<<"YES"; else if (x-1==q && y+2==w) cout<<"YES"; else if (x+2==q && y+1==w) cout<<"YES"; else if (x+2==q && y-1==w) cout<<"YES"; else if (x+1==q && y-2==w) cout<<"YES"; else if (x-1==q && y-2==w) cout<<"YES"; else if (x-2==q && y-1==w) cout<<"YES"; else if (x-2==q && y+1==w) cout<<"YES"; else if (x+1==q && y+2==w) cout<<"YES"; else cout<<"NO"; return 0; }

  • Vote: I like it
  • -23
  • Vote: I do not like it