Substract from a Googol by nn

n=readline(c=o='')
i=n[-1]
for(j=101;j-->c;o=v%10+o)v=10-9*!j-(i-->0&&n[i])-c,c=v>9^1
print(o)

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

download

return to the top page