### 2746: 布丁

[状态] [讨论版] [提交] [命题人:]

1<=n<=500,1<=m<=500

3 3 2 2
0 0 0
0 1 1
0 1 0

小Z果然是最菜的

5 5 4 3
0 1 0 1 0
0 0 1 0 1
0 1 1 1 0
0 0 0 0 0
1 0 0 0 0