Bead Sort by nn

for(a=[i=n=0];a[n]=readline();n++);for(;i++<n;print())for(j=-1;c=a[v=n-i][++j];putstr(c))for(k=n;k--*v;v-=c<'|')c=a[k][j]

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

download

return to the top page