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
10101011 01111011 00011100 11100101 11110000 11000101 11111101 10111010 11010010 10111111 11001101 00010010 00000001 01000010 11101001 00000011 10011001 01011011 11100011 01101001 00110111 00011110 10111101 01110011 00100100 01001110 00001101 11100111 00010011 10111110 01010110 10001000 11001011 00000001 00000000 00101101 00000110 00001000 11001010 00011001 00000011 10100100 11111100 01111010 01000011 01111000 00001010 00001111 01100100 00010101
1 0 1 0 0 0 1 0 1 0 0 0 1 1 0 1 1 1 0 1 1 0 0 0 1 1 0 1 0 1 0 1 0 1 1 1 1 0 0 0 1 0 0 0 0 1 1 1 0 1