1721: 黑白方块 - CCF-GESP2024年9月四级C++

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:5 Solved:3

Description

Input

Output

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