Advertisement
erfanul007

Light OJ 1107

Dec 31st, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main()
  4. {
  5. int t,n,x1,y1,x2,y2,x,y,i;
  6. scanf("%d",&t);
  7. for(i=1;i<=t;i++){
  8. scanf("%d %d %d %d",&x1,&y1,&x2,&y2);
  9. scanf("%d",&n);
  10. printf("Case %d:\n",i);
  11. while(n--){
  12. scanf("%d %d",&x,&y);
  13. if(x>x1 && x<x2 && y>y1 && y<y2)
  14. printf("Yes\n");
  15. else
  16. printf("No\n");
  17. }
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement