Note: The sample output in the problem statement is incorrect. Please refer to the "Output" section; you do not need to output the size of the matrix after !.
The correct sample output should be:
? 1 1
0
? 1 2
00
? 1 1
1
? 1 2
01
? 1 2
11
? 2 2
00
11
? 2 2
11
00
!
11
00