repeated permutation by mitchs

def f(r):
 if`len(r)/2`>r[2]or[d<r<f(r+' '+d)for d in'1234']*0:print r[4:]
f(raw_input())

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

download

return to the top page