day 7 part 2 (C), day 8 init

This commit is contained in:
2021-12-10 12:06:23 +01:00
parent 6f6a6b286a
commit e871ccf091
8 changed files with 385 additions and 13 deletions

View File

@@ -34,8 +34,6 @@ This costs a total of 37 fuel. This is the cheapest possible outcome; more expen
Determine the horizontal position that the crabs can align to using the least fuel possible. How much fuel must they spend to align to that position?
Your puzzle answer was 349769.
The first half of this puzzle is complete! It provides one gold star: *
--- Part Two ---
The crabs don't seem interested in your proposed solution. Perhaps you misunderstand crab engineering?
@@ -58,3 +56,7 @@ As each crab moves, moving further becomes more expensive. This changes the best
This costs a total of 168 fuel. This is the new cheapest possible outcome; the old alignment position (2) now costs 206 fuel instead.
Determine the horizontal position that the crabs can align to using the least fuel possible so they can make you an escape route! How much fuel must they spend to align to that position?
Your puzzle answer was 99540554.
Both parts of this puzzle are complete! They provide two gold stars: **