So I’m doing random problems for fun, and while doing this one, I noticed that this test case:
3
111
111
111
which supposedly outputs 1, should output 0. This is because if 1 was really painted first, then the rest of the 9 rectangles would have nowhere to go.
So I’m just asking why the answer is 1. Any help would be appreciated. Thanks!