m,o;char*c=&m;main(n,s){for(;*c||gets(c=s,m=n=0);o*=o<n||!printf(*c?"%d ":"%d =%d\n",o,m+=n=o))o=o*10+*c++-48;}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page