Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int k,n,m,x,y,i;
- while(1){
- scanf("%d",&k);
- if(k==0)
- break;
- scanf("%d %d",&n,&m);
- for(i=1;i<=k;i++){
- scanf("%d %d",&x,&y);
- if(x==n || y==m)
- printf("divisa\n");
- else if(x<n){
- if(y>m)
- printf("NO\n");
- else
- printf("SO\n");
- }
- else{
- if(y>m)
- printf("NE\n");
- else
- printf("SE\n");
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement