Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- int main()
- {
- int t,n,x1,y1,x2,y2,x,y,i;
- scanf("%d",&t);
- for(i=1;i<=t;i++){
- scanf("%d %d %d %d",&x1,&y1,&x2,&y2);
- scanf("%d",&n);
- printf("Case %d:\n",i);
- while(n--){
- scanf("%d %d",&x,&y);
- if(x>x1 && x<x2 && y>y1 && y<y2)
- printf("Yes\n");
- else
- printf("No\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement