Result

AC

Code [DL]

WITH RECURSIVE m(x,l,r)AS(SELECT 1,'' AS l,v AS r FROM i UNION ALL SELECT x + 1,CASE WHEN substr(r,1,8)IN('00000000','00000001','00000011','00000110','00001010','00001111','00010101','00011100','00100100','00101101','00110111','01000010','01001110','01011011','01101001','01111000','10001000','10011001','10101011','10111110','11010010','11100111','11111101')THEN 1 ELSE 0 END AS l,substr(r,10)AS r FROM m WHERE r!='')SELECT l FROM m WHERE l!=''

stdin

10011110
10001101
00001111
10001000
10011001
00000011
00001000
01011110
00001010
00100100
11110000
10000111
00000000
10100000
00100110
01000000
00101101
10101011
00001010
00000110
10000000
00011100
01000010
10110011
01010011
11010010
11001101
00000101
01001110
10100010
01111100
00111101
01000001
01001111
10011001
01101010
00110111
00000001
01111000
00111011
10000110
00010101
11111101
10111110
11100111
10101000
01101101
01111010
01011011
01101001

stdout

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

stderr

strace