day2part2

This commit is contained in:
Tyrel Souza 2023-12-02 21:18:25 -05:00
parent c827b099a2
commit dfe6dda514
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E
1 changed files with 11 additions and 1 deletions

View File

@ -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():