Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int x,y,m,n,i,k,j;
- while(1)
- {
- cin>>k;
- if(k==0)
- break;
- cin>>m>>n;
- for(i=0;i<k;i++)
- {
- cin>>x>>y;
- if(x==m||y==n)
- cout<<"divisa"<<endl;
- else if(x>m && y>n)
- cout<<"NE"<<endl;
- else if(x<m && y<n)
- cout<<"SO"<<endl;
- else if(x<m && y>n)
- cout<<"NO"<<endl;
- else
- cout<<"SE"<<endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement