Zigzag by nn

{for(m=2*--$1;i<=$1;i++<o=o RS)for(j=0;j<=$1*m+i;j++)o=o(m-i-j%m&&i-j%m?FS:$2)}$0=o

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

download

return to the top page