Day 23 (bash) part 2 (~7mn run)

This commit is contained in:
2022-10-08 21:29:47 +02:00
parent d2d66dc763
commit cd41685cb5
5 changed files with 66 additions and 10 deletions

View File

@@ -75,8 +75,6 @@ After the crab is done, what order will the cups be in? Starting after the cup l
Using your labeling, simulate 100 moves. What are the labels on the cups after cup 1?
Your puzzle answer was 75893264.
The first half of this puzzle is complete! It provides one gold star: *
--- Part Two ---
Due to what you can only assume is a mistranslation (you're not exactly fluent in Crab), you are quite surprised when the crab starts arranging many cups in a circle on your raft - one million (1000000) in total.
@@ -90,3 +88,7 @@ The crab is going to hide your stars - one each - under the two cups that will e
In the above example (389125467), this would be 934001 and then 159792; multiplying these together produces 149245887792.
Determine which two cups will end up immediately clockwise of cup 1. What do you get if you multiply their labels together?
Your puzzle answer was 38162588308.
Both parts of this puzzle are complete! They provide two gold stars: **