- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- int x1, x2, y1, y2, a, b, n, t, cs = 0;
- cin >> t;
- while(t--){
- cin >> x1 >> y1 >> x2 >> y2;
- cin >> n;
- cout << "Case " << ++cs << ":" << endl;;
- while(n--){
- cin >> a >> b;
- if((a >= x1 && a <= x2) && (b >= y1 && b <= y2))puts("Yes");
- else puts("No");
- }
- }
- return 0;
- }
No comments:
Post a Comment