Count of circles in a number aka 2581 by Hendrik

for(;;)print((readline().replace(/8/g,88).match(/[0689]/g)||[]).length)

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

download

return to the top page