Count of circles in a number aka 2581 by clock

object s,t
for i=1to 20do
t=0s=gets(0)-48s=(s=8)+(s=0or s=6or s>7)for n=1to length(s)do
t+=s[n]end for
printf(1,"%d\n",t)end for

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

download

return to the top page