Result

WA

Code [DL]

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

stdin

01011100
11000000
00000110
00111011
01000011
01011011
01011101
11110011
01100101
00001111
01001101
00101001
10101001
00001011
10011001
10111110
01101001
01001110
01000010
00000001
10001000
11110001
11010010
11010110
10000111
11010010
01010010
01010110
11101000
00010001
00001110
00110111
01000101
11011110
10001001
11001101
00000011
11111101
00011100
11111000
10101011
00001010
01101001
00100100
00010101
11100111
00101010
00000000
00101101
01111000

stdout

0.0
0.0
1.0
0.0
0.0
1.0
0.0
0.0
0.0
1.0
0.0
0.0
0.0
0.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
0.0
1.0
0.0
0.0
1.0
0.0
0.0
0.0
0.0
0.0
1.0
0.0
0.0
0.0
0.0
1.0
1.0
1.0
0.0
1.0
1.0
1.0
1.0
1.0
1.0
0.0
1.0
1.0
1.0

stderr

End of file reached (IO::EOFError)
0x45fa47: *CallStack::unwind:Array(Pointer(Void)) at ??
0x47d286: read_line at /opt/crystal/src/io.cr 822:31
0x45cea1: read_line at /opt/crystal/src/kernel.cr 41:3
0x44a902: __crystal_main at /volume/CODE 1:18
0x45cd79: main at /opt/crystal/src/main.cr 12:15
0x7f63811ef830: __libc_start_main at ??
0x44a169: _start at ??
0x0: ??? at ??

strace