Mental calculation by nn

for([a,S,b]=/...$/(readline(s=''))+s;!s[198];s+=b+S)b=-(-a-(a=b))%10
print(s)

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

download

return to the top page