find anagrams by recursive

R=raw_input
o=set(R())
while 1:
 l=R()
 if set(l)==o:print l

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

download

return to the top page