by@cookies146
AC
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-1);end endmodule
10011101 01101001 11110010 10101011 00110010 10111110 10101110 00011100 00000001 11001100 00001111 01000010 11100111 00100000 00110111 11010110 01001110 11111101 00000011 01110100 01010111 00001100 00110000 10110110 00101101 11110100 11010010 10010100 00100100 00000110 00111010 00000000 01011011 11111000 11101010 01111000 01101000 10001000 00010101 00001111 01010001 10011001 01011111 01001110 10110001 00001010 01001100 00000101 11011011 10001100
0 1 0 1 0 1 0 1 1 0 1 1 1 0 1 0 1 1 1 0 0 0 0 0 1 0 1 0 1 1 0 1 1 0 0 1 0 1 1 1 0 1 0 1 0 1 0 0 0 0