Count of circles in a number aka 2581 by pooq

stdin.get_s(1K).split("
"){a:0;it.split(""){a+=[1,0,0,0,0,0,1,0,2,1][it.to_i];};a.p;}

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

download

return to the top page