expand text by Paul

using C=System.Console;class P{static void Main() {int i,j,n=C.ReadLine()[0]-48;string c,l="",s=C.ReadLine();for(i=0;i++<n;l+="\n")foreach(char d in s){c=d.ToString();l+=c;for(j=2;j++<n;)l+=(i>1&&i<n)?" ":c;l+=c;}C.Write(l);}}

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

download

return to the top page