Comments

can anyone explain, in Div1B, for the first test case, why the following grid is not valid?

10001 10001 00100 00000 00000

here 1 represents black and 0 white.

this grid satisfies all the given conditions still they haven't considered it as a valid solution for test case 1