Result

ERROR

Code [DL]

int i,a,b;main(){for(;a<50;a++){for(b=9;b;i=i*2|getchar()&1);i/=2;while(i>0)i-=b++;putchar(i?48:49);}}

stdin

10101111
00001111
11101100
11111011
00000000
01111000
10011001
00000001
00100100
10111110
00100100
00011001
10100111
01011011
00010101
11110000
11010010
01101001
11100111
00000011
10011110
00011101
00110111
00011010
00001010
10001100
01001000
01000010
01101001
11010011
10100101
01101011
10101001
00000110
00000100
11000110
11110101
10101011
01001110
11101110
10011100
01110111
10001010
11011110
10001000
00011100
00101101
00001110
11111101
10101100

stdout

stderr

strace