2023 #1
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user