Result

AC

Code [DL]

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

stdin

01101000
11111111
10011001
11100010
11111101
01001000
01011011
10100010
11110111
10000100
01100010
01110101
10111010
00000001
10110000
10010010
01101001
01111000
00111001
00001010
11010010
00110111
01011001
01001110
10111110
11010100
00011100
11011110
00001111
00100100
00001010
00010101
10001000
00011100
00000000
11001111
00000110
10101011
11110001
00101010
11100011
11100111
01000010
00111000
10101000
00101101
11001010
10000001
11100101
00000011

stdout

00101010000001001101110110101111111011000110010001

stderr

strace