diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-12-02 10:44:30 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-12-02 10:44:30 +0800 |
commit | 5c8a364813eb3215191591b5290ccc54c647bd77 (patch) | |
tree | b7388d2458bc557934b5f3f78b113b6ef04c29c4 /src | |
parent | 6ae048cc3a3ea6e46db3ed70e744238899799bed (diff) | |
download | advent-of-code-5c8a364813eb3215191591b5290ccc54c647bd77.tar.gz advent-of-code-5c8a364813eb3215191591b5290ccc54c647bd77.zip |
2022 day1 part2
Diffstat (limited to 'src')
-rw-r--r-- | src/2022/day1/README.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/2022/day1/README.md b/src/2022/day1/README.md index faf7815..17c27fb 100644 --- a/src/2022/day1/README.md +++ b/src/2022/day1/README.md @@ -40,3 +40,12 @@ In case the Elves get hungry and need extra snacks, they need to know which Elf Find the Elf carrying the most Calories. How many total Calories is that Elf carrying? To begin, get your puzzle input. + +--- Part Two --- +By the time you calculate the answer to the Elves' question, they've already realized that the Elf carrying the most Calories of food might eventually run out of snacks. + +To avoid this unacceptable situation, the Elves would instead like to know the total Calories carried by the top three Elves carrying the most Calories. That way, even if one of those Elves runs out of snacks, they still have two backups. + +In the example above, the top three Elves are the fourth Elf (with 24000 Calories), then the third Elf (with 11000 Calories), then the fifth Elf (with 10000 Calories). The sum of the Calories carried by these three elves is 45000. + +Find the top three Elves carrying the most Calories. How many Calories are those Elves carrying in total? |