Result

WA

Code [DL]

module a;
	integer i,j,x,c;
	initial begin
		for (i=0;i<50;i=i+1) begin
			c = $fscanf(32'h8000_0000,"%b",x);
			for(j=0;j<=x;j=j+1) begin
				if (j*(j+1)/2==i) begin
					c = 0;
				end
			end
			$write("%d %b %d\n",x,x,1-c);
		end
	end
endmodule

stdin

00000110
00011011
10111110
10000110
00000011
00100100
10111010
10100011
00101101
11011100
00000000
11110011
10011001
00010101
00001011
10111000
11110100
01011010
01011111
01100001
01110100
11111101
00100010
10001000
11101100
11001010
00001010
00101111
00001111
00110111
11100111
01001110
11000111
01000010
10010100
00101101
00010111
01011011
00100001
11000110
11010010
10110001
01101001
01001011
10111011
10111110
01111000
00011100
00000001
10101011

stdout

          6 00000000000000000000000000000110           1
         27 00000000000000000000000000011011           1
        190 00000000000000000000000010111110           0
        134 00000000000000000000000010000110           1
          3 00000000000000000000000000000011           0
         36 00000000000000000000000000100100           0
        186 00000000000000000000000010111010           1
        163 00000000000000000000000010100011           0
         45 00000000000000000000000000101101           0
        220 00000000000000000000000011011100           0
          0 00000000000000000000000000000000           0
        243 00000000000000000000000011110011           0
        153 00000000000000000000000010011001           0
         21 00000000000000000000000000010101           0
         11 00000000000000000000000000001011           0
        184 00000000000000000000000010111000           1
        244 00000000000000000000000011110100           0
         90 00000000000000000000000001011010           0
         95 00000000000000000000000001011111           0
         97 00000000000000000000000001100001           0
        116 00000000000000000000000001110100           0
        253 00000000000000000000000011111101           1
         34 00000000000000000000000000100010           0
        136 00000000000000000000000010001000           0
        236 00000000000000000000000011101100           0
        202 00000000000000000000000011001010           0
         10 00000000000000000000000000001010           0
         47 00000000000000000000000000101111           0
         15 00000000000000000000000000001111           1
         55 00000000000000000000000000110111           0
        231 00000000000000000000000011100111           0
         78 00000000000000000000000001001110           0
        199 00000000000000000000000011000111           0
         66 00000000000000000000000001000010           0
        148 00000000000000000000000010010100           0
         45 00000000000000000000000000101101           0
         23 00000000000000000000000000010111           1
         91 00000000000000000000000001011011           0
         33 00000000000000000000000000100001           0
        198 00000000000000000000000011000110           0
        210 00000000000000000000000011010010           0
        177 00000000000000000000000010110001           0
        105 00000000000000000000000001101001           0
         75 00000000000000000000000001001011           0
        187 00000000000000000000000010111011           0
        190 00000000000000000000000010111110           1
        120 00000000000000000000000001111000           0
         28 00000000000000000000000000011100           0
          1 00000000000000000000000000000001           0
        171 00000000000000000000000010101011           0

stderr

strace