Elias delta to Fibonacci by kt3k

exec"""a=raw_input();_=''
while a:
 l='1';b=a.find(l)*2;s=b+int(a[:b+1],2);n=int(l+a[b+1:s],2);a=a[s:];x=y=c=-1;m=0
 while n:
\x09x,y=y,x+y;c+=1
\x09if-n>y:n+=x;m+=10**c;x=y=c=-1
 _+=str(m)[::-1]+l
print _;"""*15

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

download

return to the top page