sandglass by recursive

using C=System.Console;class P{static void Main(){var m=C.ReadLine();for(int L=m.Length,r=0,c;r<L;r++){for(c=0;c<L;c++)C.Write(c%(L-3)!=1&&0<(r-c)*(L+~r-c)?' ':m[c]);C.Write("\n");}}}

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

download

return to the top page