diff --git a/day19.py b/day19.py index 314a178..4b3b7ac 100644 --- a/day19.py +++ b/day19.py @@ -1,4 +1,3 @@ -from pprint import pprint import sys def part1(workflows: dict[str, list[list[str]]], ratings: str) -> int: @@ -10,7 +9,6 @@ def part1(workflows: dict[str, list[list[str]]], ratings: str) -> int: workflow = "in" while workflow not in "RA": - print(workflow) for rule in workflows[workflow]: match rule: case [target]: @@ -34,7 +32,6 @@ def part2(workflows: dict[str, list[list[str]]]) -> int: (workflow, x, m, a, s) = stack.pop() if workflow == "A": - print(x, m, a, s) result += (x[1] - x[0]) * (m[1] - m[0]) * (a[1] - a[0]) * (s[1] - s[0]) continue