#include <bits/stdc++.h>
#define ll long long
using namespace std;
int t,n,m;
char a[105][105];
bool checker(int x,int y) {
for (int i=x;i<=x+3;++i) {
for (int j=y;j<=y+3;++j) {
if (i==x || i==x+3) {
if (a[i][j]=='1') return 0;
}
if (i==x+1 || i==x+2) {
if (j==y || j==y+3) {
if (a[i][j]=='1') return 0;
}
else {
if (a[i][j]=='0') return 0;
}
}
}
}
return 1;
}
int main () {
ios :: sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin>>t;
while (t--) {
cin>>n>>m;
bool f=0;
if (n<4 || m<4) {
cout<<"No"<<'\n';
continue;
}
for (int i=1;i<=n-3;++i) {
for (int j=1;j<=m-3;++j) {
if (checker(i,j)) {
f=1;
cout<<"Yes"<<'\n';
break;
}
}
if(f) break;
}
if (!f) cout<<"No"<<'\n';
}
return 0;
}
求救!代码的问题在哪里