Ordered text permutations by mitchs

r=s=raw_input()
for _ in s[1:]:r=[x+y for x in r for y in s]
print'\n'.join(r)

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

download

return to the top page