Result

WA

Code [DL]

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

stdin

11100010
00000001
01111110
10011001
00000111
01001101
00110111
00111010
11011000
00010011
00010101
00000110
00001010
11101010
00001111
00101101
10111110
01101001
00011100
01111000
10011001
01011011
10111111
11111011
11101000
11001101
01001010
00000011
01101100
01001110
11011010
11010001
10110011
01011110
11000110
10000011
00100100
01110110
10101011
11111101
00000000
00100010
10001000
11111100
01011011
11010010
11100111
10111011
10000101
01000010

stdout

0.5323406362734744
1.0
1.7647603485371803
1.0
1.5498344352707498
0.8394846967484426
1.0
1.5638586528478235
1.5812457725835785
0.36931687685298087
1.0
1.0
1.0
1.278170016764804
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.102429592034305
0.8218696620299397
1.0929228528304833
0.5092582010581879
0.3515913237718422
1.0
1.4108823397054842
1.0
1.7731971484108442
0.902322672435119
1.8549864614954004
1.440845468024488
1.8120584747887634
0.38826948140329165
1.0
0.7408522978787957
1.0
1.0
1.0
0.5227116418583044
1.0
0.9110231457712388
1.0
1.0
1.0
0.6910842443062037
0.6343377441614422
1.0

stderr

/volume/CODE:1:in `to_i': wrong number of arguments (given 1, expected 0) (ArgumentError)
	from /volume/CODE:1:in `block in <main>'
	from /volume/CODE:1:in `loop'
	from /volume/CODE:1:in `<main>'

strace