Count of circles in a number aka 2581 by teebee

s:0;j:1K;j.times{i:stdin.get_i8;s+=j<9||i>10?i%3<1&&i!=51?1:i>55?2:0:-s.p;j=i;}

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

download

return to the top page