Character distance by *yuko*

var s:string;i,k:word;begin read(s);repeat i:=i+1;k:=pos(s[i],copy(s,i+1));if k>0then writeln(s[i],": ",k)until 0>0end.

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

download

return to the top page