Leapfrogging by llhuii

while 1:
\x09j=i=0;s=input();a=''
\x09while s[i:]:i+=1;c=s.find(str(i));c+=c>=j;a+=("<>%d"%(j-c))[j<c::2];j=c
\x09print(a)

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

download

return to the top page