Skip to content

Commit

Permalink
day14
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulNGilson committed Dec 26, 2024
1 parent 9de620c commit 0c8691a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion day14/bathroom_robots.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def open_input():
elif end_x > midpoint_width and end_y > midpoint_height:
quadrant_counts["bottom-right"] += 1

assert math.prod(quadrant_counts.values()) == 12 if TESTDATA else 217132650
assert math.prod(quadrant_counts.values()) == 12 if TESTDATA else True
print("part 1:", math.prod(quadrant_counts.values()))

# part 2 begins
Expand Down
2 changes: 1 addition & 1 deletion day14/bathroom_robots_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def open_input():
elif end_x > midpoint_width and end_y > midpoint_height:
quadrant_counts["bottom-right"] += 1

assert math.prod(quadrant_counts.values()) == 12 if TESTDATA else 217132650
assert math.prod(quadrant_counts.values()) == 12 if TESTDATA else True
print("part 1:", math.prod(quadrant_counts.values()))

# part 2 begins
Expand Down

0 comments on commit 0c8691a

Please sign in to comment.