From 7ac240e75434d2bb47adfa50dad4f869a9b955ef Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 10 Dec 2025 13:22:26 +0100 Subject: Don’t use replacement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2025/10/puzzle-1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2025/10/puzzle-1.py b/2025/10/puzzle-1.py index d27db0c..e3bd232 100755 --- a/2025/10/puzzle-1.py +++ b/2025/10/puzzle-1.py @@ -39,7 +39,7 @@ def main() -> None: def fewest_clicks(mach: Machine) -> int: for i in itertools.count(start=1): - for comb in itertools.combinations_with_replacement(mach.buttons, i): + for comb in itertools.combinations(mach.buttons, i): if functools.reduce(operator.xor, comb) == mach.target: return i # NOTREACHED -- cgit v1.2.3