Reverse BWT by kt3k

while 1:a,b=raw_input().split();c=b;exec"c=sorted(zip(b,c));"*40;print`c[int(a)]`[2:len(b)*6:6]

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

download

return top