You are viewing a single comment's thread. Return to all comments →
def solve(n): lista = ["9"] while lista: a = lista.pop(0) if int(a) % n == 0: return a lista.append(a+"0") lista.append(a+"9")
Seems like cookies are disabled on this browser, please enable them to open this website
Special Multiple
You are viewing a single comment's thread. Return to all comments →
def solve(n): lista = ["9"] while lista: a = lista.pop(0) if int(a) % n == 0: return a lista.append(a+"0") lista.append(a+"9")