Result

AC

Code [DL]

WITH RECURSIVE m(l,r)AS(SELECT 2,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,substr(r,10)FROM m WHERE r!='')SELECT l FROM m WHERE l!=2

stdin

00001111
11010110
10000111
00001101
10011001
00011100
10001011
10011000
00000001
10111110
01011011
01111000
00011100
00000110
01000111
00110111
00001010
01101001
00000011
01100010
00101101
01001110
11010010
10001111
10011101
11100000
11110001
11101111
10101011
00100011
10101011
11100111
10010000
01111100
11110011
00100100
00010101
10000001
00111000
00100000
10000000
11001000
10001000
01101010
00110100
11111101
10100010
00000000
01000010
00100111

stdout

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

stderr

strace