n section by Hendrik

using C=System.Console;class X{static void Main(){for(;;){string x=C.ReadLine(),s=x.Remove(0,2);for(int i=-1;(i+=s.Length/(x[0]-48)+1)<s.Length;)s=s.Insert(i," ");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