Count of circles in a number aka 2581 by macik

using C=System.Console;class G{static void Main(){for(;;){int s=0;foreach(char c in C.ReadLine())s+=c>47?397313>>(c-48)*2&3:0;C.WriteLine(s);}}}

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

download

return to the top page