day 21 part 1 (bash)

This commit is contained in:
2021-07-30 17:18:48 +02:00
parent 937c1b434b
commit 1db46ed0b0
3 changed files with 143 additions and 2 deletions

View File

@@ -21,7 +21,25 @@ The first step is to determine which ingredients can't possibly contain any of t
Determine which ingredients cannot possibly contain any of the allergens in your list. How many times do any of those ingredients appear?
To begin, get your puzzle input.
Your puzzle answer was 2211.
The first half of this puzzle is complete! It provides one gold star: *
--- Part Two ---
Now that you've isolated the inert ingredients, you should have enough information to figure out which ingredient contains which allergen.
In the above example:
mxmxvkd contains dairy.
sqjhc contains fish.
fvjkl contains soy.
Arrange the ingredients alphabetically by their allergen and separate them by commas to produce your canonical dangerous ingredient list. (There should not be any spaces in your canonical dangerous ingredient list.) In the above example, this would be mxmxvkd,sqjhc,fvjkl.
Time to stock your raft with supplies. What is your canonical dangerous ingredient list?
Answer:
You can also [Share] this puzzle.
Although it hasn't changed, you can still get your puzzle input.
You can also [Share] this puzzle.