for(b=[],i=51;i--;)b.push([]) for(;s=readline();)for(j=50;j--;x!=' '&&b[j].unshift(x))x=s[j] for(k=30;k--;~(o-1)&&print(o))for(j=o='';j<50;j++)o+=b[+j][k]||' '
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page