#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int T,cas=0;
cin>>T;
while(T--)
{
double x1,y1,x2,y2;
cin>>x1>>y1>>x2>>y2;
int t;
cin>>t;
printf("Case %d:\n",++cas);
for(int i=0;i<t;i++)
{
double _x,_y;
cin>>_x>>_y;
if(_x<=x2&&_x>=x1&&_y<=y2&&_y>=y1)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
}
}
return 0;
}
lightOj 1107 - How Cow
最新推荐文章于 2021-07-28 15:51:20 发布