You are viewing a single comment's thread. Return to all comments →
Python3 one line solution:
def solve(a, n, m): return(((((pow(10,n*(len(str(a))),(10**(len(str(a))) - 1)*m)-1)//(10**(len(str(a))) - 1))%m)*(a%m)%m))
Seems like cookies are disabled on this browser, please enable them to open this website
Eugene and Big Number
You are viewing a single comment's thread. Return to all comments →
Python3 one line solution: