Result

WA

Code [DL]

s= java.lang.System.in;
for(;s.readLine();)print(+!(Math.sqrt(8*parseInt(c.next(),2)+1)%1))

stdin

11100111
11011010
11110001
10011001
01111000
01001001
10110000
00110010
00010100
00110111
10101011
00100011
11111110
00000011
01111001
00010101
00101101
01110010
01000010
01000010
10110010
00000001
00110101
00001111
10001111
01101001
10110111
10000001
11010010
10001000
00000000
00010101
10000100
01100100
01011010
01000110
01001110
00100100
10000110
11110110
10011110
00100000
11111101
01011011
00011100
11011001
00001010
10111110
00000110
01100111

stdout

stderr

js: uncaught JavaScript runtime exception: TypeError: Cannot find function readLine in object java.io.BufferedInputStream@449b2d27.

strace