Outline by nn

for(f=a=[S='#',s=' '];l=readline()||'',a.push(s+l),l;)i=0
for(;f;i++)for(j in f=0,a)f+=a[j][i]||!(a[j]+=j++?s:S)
for(;print(S+a[f++%j]+S),f<=j;);

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

download

return to the top page