by@satos___jp
AC
module a;integer i,j,x,c;initial begin for(i=0;i<50;i=i+1)begin c=$fscanf(32'h80000000,"%b",x);for(j=0;j<=x;j=j+1)begin c=c+(j*(j+1)/2==x); end $write("%d",c-1);end end endmodule
00011111 01011110 10101011 01100111 01011000 00100100 00001010 11101110 01101111 10001101 11101111 11111111 10001000 00010101 01001110 00000011 10110000 00101101 11100111 10111110 00000000 00000001 11111101 00101101 01011011 11011100 10011001 11010110 11101010 10011101 00000001 10000011 00110111 11010010 00111010 10011010 01101001 11110000 00101001 01111000 00001110 01011111 01110101 00001111 11110111 10000001 11011011 00000110 01000010 00011100
0 0 1 0 0 1 1 0 0 0 0 0 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 0 0 0 1 0 1 1 0 0 1 0 0 1 0 0 0 1 0 0 0 1 1 1