Result

AC

Code [DL]

v     v+1$<
0>*:99 g\`|
v 0.!- g99<
v^+1::<0p99$_+2*
>#@~"0"-:0\`^

stdin

11011101
00101101
01100100
00101011
00000011
10110011
10011001
00100100
01001110
01000111
10001000
01011000
10001100
11100111
00000110
11001100
11001011
00010101
11111101
00110010
00000000
01100011
10111111
01101000
10101011
00011100
10111110
00000001
00100100
00001000
00110111
00001010
11011010
11110011
11010010
01010010
01111000
01011011
01011101
00001111
01100110
01000101
01101001
00110001
00010101
11100010
11110111
01000010
00111011
11000010

stdout

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

stderr

strace