s=raw_input() for c in s: \x09d=s.rfind(c);s=s[1:] \x09if d:print c+':',d
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page