Josif_tepe

Untitled

Feb 21st, 2026
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4.     int n,m,s,p;
  5.     cin>>n>>m>>s>>p;
  6.     if((abs(n-s)==1 and abs(m-p)==2) or (abs(s-n)==2 and abs(p-m)==1) ){
  7.         cout<<"DA"<<endl;
  8.        
  9.                 }
  10.                 else{
  11.                     cout<<"NE";
  12.                 }
  13.    
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment