summaryrefslogtreecommitdiffstats
path: root/20/py
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-12-16 18:47:22 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-12-16 18:47:22 +0100
commit9e1ce0e8f2d838e652fd592257b3dc3c8fe2fc23 (patch)
tree45b517b7de8262a3b14dcd82ec4be45a8c679133 /20/py
parent489fa5d88ed59b800ec9f33f7a7174b95c2848f0 (diff)
downloadaoc-9e1ce0e8f2d838e652fd592257b3dc3c8fe2fc23.tar.gz
16: unneeded enumerate
Diffstat (limited to '20/py')
-rw-r--r--20/py/d16.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/20/py/d16.py b/20/py/d16.py
index f6b7f46..ed9b224 100644
--- a/20/py/d16.py
+++ b/20/py/d16.py
@@ -42,7 +42,7 @@ def pt2(_in):
# assume it can be anything
candidates = [set(range(20)) for _ in range(20)] # one set per field
- for t, ticket in enumerate(tickets):
+ for ticket in tickets:
for f, field in enumerate(ticket):
for c, constraint in enumerate(constraints):
if c in candidates[f] and not any(field in cons for cons in constraint):