for(;r=readline();print(i))for(i=-1;+r;r=t,i++)for(t=a=j="";c=r[j++];)t+=+c+10*a>>1,a=c%2
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page