Leapfrogging by xsot

while 1:s=raw_input();o='';p=x=0;exec"i=s.find(`x+1`);b=p<=i;o+='<>'[b]+`abs(p-i)+b`;p=i+b;x+=1;"*len(s);print o

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

download

return to the top page