Problem K: GESP 四 202409-编程1

Problem K: GESP 四 202409-编程1

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

Sample Input Copy

3
1 4
0110
5 5
00000
01100
01100
00001
01100
5 5
00000
01100
01110
00001
01100

Sample Output Copy

No
Yes
No