Result

WA

Code [DL]

import std.stdio;
import std.conv;
import std.math;
void main(){
for(int i=50;--i;){
writeln(sqrt(to!int(readln()[0..7],2)*8+1.)%2);
}}

stdin

11010010
10101011
11100111
01111000
10001000
10101010
00001011
00000011
01010100
11001000
11111101
10011001
01010101
01101001
00000110
00000000
01000010
10011101
01010010
00001111
01111011
01001110
11110001
01011000
01000110
10100000
00101101
00000100
11011110
01011011
10101011
11100100
01111000
00101000
11100110
00001010
00100100
00000001
10110111
01101110
10010100
11110010
10111110
00110111
00010101
10111100
00011100
10110001
01001100
01101011

stdout

1
0.0959767
0.347982
1.93171
1.34524
0.0959767
0.403124
1
0.35756
0.301943
1.76476
0.677925
0.35756
0.420578
1
1
0.278821
1
0.138357
1.54983
0.113344
1.69181
1
0.788294
0.763055
1.31798
1.30413
0.123106
1.8161
1
0.0959767
0.21589
1.93171
0.688578
0.347982
0.403124
0.0415946
1
1
1
0.351591
1.12876
1.58623
0.73092
1
1.44085
0.630146
0.551836
1.46425

stderr

strace