aboutsummaryrefslogtreecommitdiff
path: root/2021
diff options
context:
space:
mode:
Diffstat (limited to '2021')
-rwxr-xr-x2021/08/puzzle-2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/2021/08/puzzle-2.py b/2021/08/puzzle-2.py
index 74d2aad..0ebb2d3 100755
--- a/2021/08/puzzle-2.py
+++ b/2021/08/puzzle-2.py
@@ -39,8 +39,8 @@ def solve(nums: list[str]) -> int:
acc = 0
for n, (k, v) in itertools.product(nums, nummap.items()):
- if set(v) == set(n):
- acc = acc * 10 + int(k)
+ if set(n) == v:
+ acc = acc * 10 + k
return acc