Result

WA

Code [DL]

:for i in range(51)
call setline(i,system("ruby -e 'p 2[1-(1+8*0b".getline(i).")**0.5%1]'"))
endfor
ZZ

Disassembly

:for i in range(51)<NL>call setline(i,system("ruby -e 'p 2[1-(1+8*0b".getline(i).")**0.5%1]'"))<NL>endfor<NL>ZZ

stdin

11100001
00000001
11010111
10011001
11011011
00000000
00101101
01010101
01111000
11111110
01011111
11010010
01111000
01011011
00001111
00110111
10011000
10110110
10101011
11011110
10111000
01000010
01100000
01011101
00011100
11111011
00000011
01101001
11001011
00000110
00011110
10001000
10001101
10101101
00000110
11110001
01101100
01101111
01001001
00010010
01111100
01001110
00010101
11100111
11111101
01000101
01010110
00001010
00100100
10111110

stdout

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

stderr

strace