Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int n,m,s,p;
- cin>>n>>m>>s>>p;
- if((abs(n-s)==1 and abs(m-p)==2) or (abs(s-n)==2 and abs(p-m)==1) ){
- cout<<"DA"<<endl;
- }
- else{
- cout<<"NE";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment