int main()
{
int x1,x2,y1,y2,x,y,c,i,n,m;
scanf("%d",&c);
for(i=0;i<c;i++){
printf("Case %d:\n",i+1);
scanf("%d %d %d %d",&x1,&y1,&x2,&y2);
scanf("%d",&n);
for(m=0;m<n;m++){
scanf("%d %d",&x,&y);
if(x==0||y==0){
printf("No\n");
}
else if((x1<x)&&(x<x2)&&(y1<y)&&(y<y2)){
printf("Yes\n");
}
else{
printf("No\n");}
}
}
}
No comments:
Post a Comment