We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7363421 commit d18d8f5Copy full SHA for d18d8f5
puzzles/solutions/2022/d01/p2.py
@@ -9,6 +9,7 @@ def get_answer(input_text: str):
9
sums = p1.get_calories_sums(inventories)
10
11
descending_calories = sorted(sums, reverse=True)
12
+ return sum(descending_calories[:3])
13
14
15
if __name__ == "__main__":
0 commit comments