{for(;j--||99>j=i++;A[i]<a&&A[i]=a)a=A[i%j?0:j]+i/10+i%10*.9-9*NR+9}$0=A[$0]

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

download

return to the top page