WA in " Chef and Pepperoni Pizza Again"

Please help me find why it is giving WA.
Problem Link
My Solution

help needed

consider this test case
1
4
0000
0000
0010
0001

your output is
0000
0000
0010
0100
which is not possible

1 Like

ok i got it where i am wrong.Thanks sir

1 Like