Bowling again by macik

using C=System.Console;class G{static void Main(){for(;;){int i=0,t=0,j=10,k=0;int[]l=new int[99];foreach(string s in C.ReadLine().Split())l[k++]=int.Parse(s);while(j-->0)C.Write("{0}{1}",t+=(k=l[i]+l[i+1])+(k>9?l[i+2]:0),j>0?' ':'\n',i+=l[i]>9?1:2);}}}

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

download

return to the top page