while True:\x0d l=input()\x0d s=0\x0d i=0\x0d while i<len(l)-1:\x0d s+=l[i+1]-l[i]\x0d i+=1\x0d print s\x0d
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page