Bead Sort by nn

b;n;char a[][99];main(j,k,v,c){for(;gets(a+n);n++);for(;b++<n;puts(""))for(j=-1;c=a[v=n-b][++j];printf(&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