Compare commits

..

5 commits

View file

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