diff --git a/2023/python/day02.py b/2023/python/day02.py index 9e34d38..a26c3b1 100644 --- a/2023/python/day02.py +++ b/2023/python/day02.py @@ -36,7 +36,17 @@ def part1(rows): # @shared.profile def part2(rows): - pass + total = 0 + for row in rows: + _, colors = split_games(row) + power=1 + for vals in colors.values(): + power *= max(vals) + total += power + print(total) + + + def main():