day2part2
This commit is contained in:
parent
c827b099a2
commit
dfe6dda514
@ -36,7 +36,17 @@ def part1(rows):
|
|||||||
|
|
||||||
# @shared.profile
|
# @shared.profile
|
||||||
def part2(rows):
|
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():
|
def main():
|
||||||
|
Loading…
Reference in New Issue
Block a user