Reverse BWT by 51b

strcmp();char s[45][45],t[99];n,m,j;main(i){for(;~scanf("%d%s",&m,t);puts(s[m]))for(i=n=strlen(t);i--;qsort(*s+i,n,45,strcmp))for(j=n;j--;)s[j][i]=t[j];}

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

download

return to the top page