Result

AC

Code [DL]

WITH RECURSIVE m(l,r)AS(SELECT '',v FROM i UNION ALL SELECT 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

00110111
00010111
01001110
01110000
10101011
10110000
10110111
11100111
10101001
01000001
10001101
00000001
01011011
00100100
11100111
00001100
11000001
00000100
01101001
11100100
00000000
00101001
01111000
11010010
00000110
11111101
10001000
11000101
01010101
10111110
10110001
00010101
01000010
00101101
00011100
00000011
00001111
00001010
00010101
11010111
00111100
10100110
00011110
11100010
10011001
01111101
10110110
11111010
11010110
00110110

stdout

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

stderr

strace