fix prints
This commit is contained in:
@@ -45,10 +45,10 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
# part a: find the number of sections that fully contain each other
|
# part a: find the number of sections that fully contain each other
|
||||||
answer_a = find_subsets(sections)
|
answer_a = find_subsets(sections)
|
||||||
print(f"sum of priorities of all common items amongst compartments: {answer_a}")
|
print(f"sum of all cleanup sections that fully contain each other: {answer_a}")
|
||||||
submit(answer_a, part="a", day=4, year=2022)
|
submit(answer_a, part="a", day=4, year=2022)
|
||||||
|
|
||||||
# part b: determine the priority of common items in groups of three and create a priority summary
|
# part b: determine the priority of common items in groups of three and create a priority summary
|
||||||
answer_b = find_overlaps(sections)
|
answer_b = find_overlaps(sections)
|
||||||
print(f"sum of priorities of all common items amongst groups of three: {answer_b}")
|
print(f"sum of all cleanup section that intersect: {answer_b}")
|
||||||
submit(answer_b, part="b", day=4, year=2022)
|
submit(answer_b, part="b", day=4, year=2022)
|
||||||
|
|||||||
Reference in New Issue
Block a user