aboutsummaryrefslogtreecommitdiff
path: root/2025/10/puzzle-1.py
diff options
context:
space:
mode:
authorThomas Voss <thomas.voss@humanwave.nl> 2025-12-10 13:22:26 +0100
committerThomas Voss <thomas.voss@humanwave.nl> 2025-12-10 13:22:49 +0100
commit7ac240e75434d2bb47adfa50dad4f869a9b955ef (patch)
tree8ce57fb246dca61c168e2e0114dd0c552cbcda2c /2025/10/puzzle-1.py
parent20560f0bb5736a5b75fd4faac41b9d02e8af1636 (diff)
Don’t use replacement
Diffstat (limited to '2025/10/puzzle-1.py')
-rwxr-xr-x2025/10/puzzle-1.py2
1 files changed, 1 insertions, 1 deletions
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