Result

AC

Code [DL]

vv+1::+1$_'x-!.
0>*:b0g\`^
v^+1::0p0b$_+2*
>#@~'0-:0\`^

stdin

00000110
10001100
01101001
10111001
11100010
00111011
00011100
00111000
00011010
11010010
11110111
11110010
10111110
10100011
00001111
01011011
00110011
00001110
11111101
01101010
00011110
11111000
10011001
10000000
01110100
11100111
11011110
11011111
11010110
00000001
01111000
11100111
00110111
00010101
00001010
00100100
10001000
00101011
11011011
00000011
00000100
10101011
01001110
11011010
11001010
01000010
01100001
00000000
10111110
00101101

stdout

1 0 1 0 0 0 1 0 0 1 0 0 1 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 0 1 1 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 0 1 1 1 

stderr