by@xuzijian629_key
AC
module a;integer i,j,x,c;initial repeat(50)begin c=$fscanf(1<<31,"%b",x);for(j=0;j<=x;j=j+1)c=c+(j*(j+1)/2==x);$write("%d",c-1);end endmodule
00101101 01111000 11010010 01011011 00011011 10100000 10100110 11100010 10011001 00000111 11001100 11011110 01001110 00000000 01111101 00000110 00000011 00011100 10111001 10001010 10001110 11111000 10001000 11100111 00111111 01010010 11000000 11100111 00010101 10110000 00001010 01101001 00100100 11111111 11111101 00110111 01110011 00000001 00100001 01000010 00001111 10101011 00110010 11000101 00000110 10111110 11110000 11001000 11000111 00100110
1 1 1 1 0 0 0 0 1 0 0 0 1 1 0 1 1 1 0 0 0 0 1 1 0 0 0 1 1 0 1 1 1 0 1 1 0 1 0 1 1 1 0 0 1 1 0 0 0 0