Result

AC

Code [DL]

module a;real x;initial repeat(50)$write("%d",$fscanf(1<<31,"%b",x)==(8*x+1)**0.5%2);endmodule

stdin

11010111
01101010
01011000
00000001
01000010
00001100
11110111
10100110
11100101
11111101
10110001
10011011
11001101
00101101
00000111
10111011
00110010
10111101
11100111
01001101
10101011
00111010
10101101
01011011
01100101
10010110
00011100
00001010
00110110
10111110
00100100
10110010
00000000
00110111
01101001
00000011
00100100
11111110
11111101
10010101
01010100
01111000
10001000
11010010
01001110
00000110
01101110
00001111
10011001
00010101

stdout

00011000010001000010100100110110111110100111110111

stderr

strace