Leapfrogging by chocobi

d,e,p,q,a[9];main(c){for(;gets(q=a);puts(""))for(c=49,e=1;p=strchr(a,c++);printf(d?"<%d":">%d",abs(p-q-d+e)),q=p,e=d)d=p<q;}

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

download

return to the top page