#include<stdio.h>
int main()
{
int k,m,n,t,x,y;
while(scanf("%d",&k)==1)
{
if(k==0)
break;
scanf("%d%d",&m,&n);
for(t=1;t<=k;t++)
{
scanf("%d%d",&x,&y);
if(x>m&&y>n)
printf("NE\n");
else if(x<m&&y>n)
printf("NO\n");
else if(x<m&&y<n)
printf("SO\n");
else if(x>m&&y<n)
printf("SE\n");
else
printf("divisa\n");
}
}
return 0;
}
Problem
int main()
{
int k,m,n,t,x,y;
while(scanf("%d",&k)==1)
{
if(k==0)
break;
scanf("%d%d",&m,&n);
for(t=1;t<=k;t++)
{
scanf("%d%d",&x,&y);
if(x>m&&y>n)
printf("NE\n");
else if(x<m&&y>n)
printf("NO\n");
else if(x<m&&y<n)
printf("SO\n");
else if(x>m&&y<n)
printf("SE\n");
else
printf("divisa\n");
}
}
return 0;
}
Problem
No comments:
Post a Comment