Pileup by macik

using C=System.Console;class G{static void Main(){string[]T=C.ReadLine().Split();for(int i=0;;i++){if(i>0){int b=T[i].Length;string s=T[i-1]+T[i];T[i-1]=s.Substring(0,b);T[i]=s.Substring(b);}C.WriteLine(string.Join(" ",T));}}}

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

download

return to the top page