帮你拍了一下 下面是数据
1 1
1
输出
1
1
by dwbcz @ 2019-08-31 16:53:59
6 7
0 0 0 1 0 0 1
0 0 0 0 1 0 1
1 0 1 1 0 0 0
0 0 0 0 1 1 1
0 1 0 1 1 1 0
1 1 1 1 1 0 1
输出
4
8
by dwbcz @ 2019-08-31 16:54:58