Responsive Ads Here

Saturday, October 25, 2014

UVA-11498 ( Division of Nlogonia )

 

UVA-11498 ( Division of Nlogonia )

 

0001

#include<stdio.h>
int main()
{
int a,b,c,d,n;
while (1)
{ int i=0;
scanf("%d",&n);
if(n==0)
{
break;
}
scanf("%d %d",&a,&b);
while(i<n)
{
scanf("%d %d",&c,&d);
if(c>a && d>b)
printf("NE\n");
else if(c>a && d<b)
printf("SE\n");
else if(c<a && d<b)
printf("SO\n");
else if (c<a && d>b)
printf("NO\n");
else
printf("divisa\n");
i++;
}
}
return 0;

}


 


UVA-11498 ( Division of Nlogonia ) UVA LINK

No comments:

Post a Comment

php4

<?php    // Start the session  session_start();  ?>  <!DOCTYPE html>  <html>  <head>       <link rel=&q...