forked from adventofcode/logan_2022
Slightly fixed Day 1
This commit is contained in:
parent
73d71168e0
commit
dd53bb6cde
1 changed files with 1 additions and 1 deletions
|
@ -18,6 +18,6 @@ if __name__ == "__main__":
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
largest = max(elves, key=elves.get)
|
largest = max(elves, key=elves.get)
|
||||||
top3 += elves[largest]
|
top3 += elves[largest]
|
||||||
elves[largest] = 0
|
del elves[largest]
|
||||||
|
|
||||||
print(f'Top 3: {top3}')
|
print(f'Top 3: {top3}')
|
||||||
|
|
Loading…
Reference in a new issue