Result

AC

Code [DL]

a5*>0v
68*-+>2*i:a=?v
v}0+1:      ~<
<v!?:}+{=*+1:@:{:}-1
 >{n~~1-:30{?.;

stdin

01001110
01100110
00000001
00101011
00110111
01000010
01000100
10011001
10000100
11000000
11010010
00001111
00001101
11100110
10001101
01000111
00000000
01101001
11010010
10101011
01001100
00000110
00010101
01000101
00000011
00100100
00011100
11111111
00100110
01111000
11110000
01011011
00101101
10011010
10001000
10111110
00000111
00001010
11111010
10001110
11001110
11111110
11111101
01100101
10100010
11100111
01100001
01001110
01001111
01001101

stdout

10101101001100001111011011100101101101000010010100

stderr

strace