Character distance by leonid

r=raw_input()
for c in r:
 j=r.rfind(c);r=r[1:]
 if j:print c+':',j

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

download

return top