Leapfrogging by twobit

p;i;main(c,s){for(;p=gets(s);puts(""))for(c=48;i=index(s,++c);p=i)i+=i>=p,printf("%c%d","><"[i<p],abs(p-i));}

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

download

return to the top page