Character distance by twobit

l=raw_input()
while 1:
 c=l[0];q=l.rfind(c);l=l[1:]
 if q:print c+":",q

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

download

return top