Result

AC

Code [DL]

loop{p (1+8*read_line.to_i 2)**0.5%1>0?0:1}

stdin

10011010
11111101
10111111
10111110
01000010
11101100
10111010
11111001
00110100
10100100
00011100
00000011
01100111
10110010
11001111
10110111
00001111
11101101
01001001
10110001
01001100
10010011
00001010
00100100
01001110
11100111
00000001
00110111
11010010
10011001
01011011
00000110
10011110
01111000
01010001
00101101
11111101
00101111
00011001
10001000
10011111
10101011
00010101
00101001
00000110
00111000
00000000
01101001
10001110
00000100

stdout

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

stderr

End of file reached (IO::EOFError)
0x459147: *CallStack::unwind:Array(Pointer(Void)) at ??
0x476026: read_line at /opt/crystal/src/io.cr 822:31
0x456b01: read_line at /opt/crystal/src/kernel.cr 41:3
0x447526: __crystal_main at /volume/CODE 1:14
0x4569d9: main at /opt/crystal/src/main.cr 12:15
0x7f5fe5980830: __libc_start_main at ??
0x446e09: _start at ??
0x0: ??? at ??