Leapfrogging by llhuii

while 1:j=i=0;s=`input()`;a='';exec"i+=1;c=s.find(`i`);c+=c>=j;a+='<>'[j<c]+`c-j`[-1];j=c;"*len(s);print a

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

download

return to the top page