Advertisement
Farjana_akter

Untitled

Feb 8th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int x,y,m,n,i,k,j;
  7. while(1)
  8. {
  9. cin>>k;
  10. if(k==0)
  11. break;
  12. cin>>m>>n;
  13. for(i=0;i<k;i++)
  14. {
  15. cin>>x>>y;
  16. if(x==m||y==n)
  17. cout<<"divisa"<<endl;
  18. else if(x>m && y>n)
  19. cout<<"NE"<<endl;
  20. else if(x<m && y<n)
  21. cout<<"SO"<<endl;
  22. else if(x<m && y>n)
  23. cout<<"NO"<<endl;
  24. else
  25. cout<<"SE"<<endl;
  26. }
  27. }
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement