Leapfrogging by tails

p;main(i,s,c){for(;i=p?:gets(s,c=48);printf(p?"%c%d":"\n",62-p/i*2,abs(p-i)))p=index(s,++c),p+=p&&i/p;}

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

download

return to the top page