p:printf;a:?read();b:?read()-1;sum(if b=?logcount(i)then p(?t,ssubst("|","1",ssubst("*","0",p(?-,"~V,'0B ",c,i)))),i,1,2^c:a+b);
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page