Character distance by hallvabo

enum C{C;System Z;int d,i;{String s=new java.util.Scanner(Z.in).next();for(char c:s.toCharArray())if((d=s.lastIndexOf(c)-i++)>0)Z.out.println(c+": "+d);}}

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

download

return to the top page