Result

WA

Code [DL]

module c;integer d;initial while($fscanf(1<<31,"%b",d))$write(($sqrt(d*8+1)-1)/2!=0);endmodule

stdin

10001000
11010000
11111101
11100000
01101001
00011100
00100100
00000110
01111100
01000010
10110011
00101101
11000110
11101110
10110001
01001001
11100111
00100100
11010010
11011111
01010100
00001010
00111100
01001000
01000111
01010001
11101111
10011001
00011101
01101010
10000000
10111110
00011001
00010101
00001111
10101011
10010100
00000000
01110011
00110111
00000001
00100100
00000011
01001110
01011000
10011111
01011011
01111000
10010110
00010001

stdout

11111111111111111111111111111111111110111111111111

stderr

strace