numof 1 bits in 0 to 255 by pooq

for(int a,i;i<256;++i,write(a,none),a=0)for(int j;j<8;++j)a+=(int)(i/2^j)%2;

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page