Compare commits

..

5 commits

View file

@ -20,7 +20,7 @@ def solve(input: str) -> int:
if digits % repeat != 0:
continue
cycle = digits // repeat
base = (10**digits - 1) / (10**cycle - 1)
base = (10**digits - 1) // (10**cycle - 1)
if n % base == 0:
yield n
break # Don't yield the same digit twice