String Halving by hallvabo

def f(_):x=-~len(_)/2;return"{%s}"%(_[1:]and f(_[:x])+f(_[x:])or _)
print 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