by@cookies146
WA
module a;integer i,j,x,c;initial repeat(50) begin c=$fscanf(2147483648,"%b",x);for(j=0;j<=x;j=j+1)c=c+(j*(j+1)==2*x);$write("%d",c);end endmodule
00010101 11111100 01001110 11010011 00001010 10111101 00000000 10011011 00100100 10100111 01000110 10111110 00110111 10011001 10110110 00001111 11011110 00011011 10011101 10111000 00010000 10101011 11000010 00101101 01011111 10111111 01101001 11111101 00000011 00101011 01001001 01111000 00000100 11010010 01101001 10001000 11001011 00000110 01110011 11100111 00011100 10011100 11011010 11011100 11111101 00111110 01000010 11110010 00000001 01011011
2 1 2 1 2 1 2 1 2 1 1 2 2 2 1 2 1 1 1 1 1 2 1 2 1 1 2 2 2 1 1 2 1 2 2 2 1 2 1 2 2 1 1 1 2 1 2 1 2 2