Reflowed problems and added solutions
This commit is contained in:
@@ -5,10 +5,10 @@ Advent of Code
|
||||
The Elves contact you over a highly secure emergency channel. Back at the
|
||||
North Pole, the Elves are busy misunderstanding White Elephant parties.
|
||||
|
||||
Each Elf brings a present. They all sit in a circle, numbered starting
|
||||
with position 1. Then, starting with the first Elf, they take turns
|
||||
stealing all the presents from the Elf to their left. An Elf with no
|
||||
presents is removed from the circle and does not take turns.
|
||||
Each Elf brings a present. They all sit in a circle, numbered starting with
|
||||
position 1. Then, starting with the first Elf, they take turns stealing all
|
||||
the presents from the Elf to their left. An Elf with no presents is removed
|
||||
from the circle and does not take turns.
|
||||
|
||||
For example, with five Elves (numbered 1 to 5):
|
||||
|
||||
@@ -27,21 +27,21 @@ Advent of Code
|
||||
So, with five Elves, the Elf that sits starting in position 3 gets all the
|
||||
presents.
|
||||
|
||||
With the number of Elves given in your puzzle input, which Elf gets all
|
||||
the presents?
|
||||
With the number of Elves given in your puzzle input, which Elf gets all the
|
||||
presents?
|
||||
|
||||
Your puzzle input was 3014387.
|
||||
|
||||
Your puzzle answer was __________.
|
||||
Your puzzle answer was 1834471.
|
||||
|
||||
--- Part Two ---
|
||||
|
||||
Realizing the folly of their present-exchange rules, the Elves agree to
|
||||
instead steal presents from the Elf directly across the circle. If two
|
||||
Elves are across the circle, the one on the left (from the perspective of
|
||||
the stealer) is stolen from. The other rules remain unchanged: Elves with
|
||||
no presents are removed from the circle entirely, and the other elves move
|
||||
in slightly to keep the circle evenly spaced.
|
||||
instead steal presents from the Elf directly across the circle. If two Elves
|
||||
are across the circle, the one on the left (from the perspective of the
|
||||
stealer) is stolen from. The other rules remain unchanged: Elves with no
|
||||
presents are removed from the circle entirely, and the other elves move in
|
||||
slightly to keep the circle evenly spaced.
|
||||
|
||||
For example, with five Elves (again numbered 1 to 5):
|
||||
|
||||
@@ -52,8 +52,8 @@ Advent of Code
|
||||
4 3
|
||||
|
||||
• Elves 3 and 4 are across the circle; Elf 3's present is stolen, being
|
||||
the one to the left. Elf 3 leaves the circle, and the rest of the
|
||||
Elves move in:
|
||||
the one to the left. Elf 3 leaves the circle, and the rest of the Elves
|
||||
move in:
|
||||
|
||||
1 1
|
||||
5 2 --> 5 2
|
||||
@@ -80,12 +80,12 @@ Advent of Code
|
||||
So, with five Elves, the Elf that sits starting in position 2 gets all the
|
||||
presents.
|
||||
|
||||
With the number of Elves given in your puzzle input, which Elf now gets
|
||||
all the presents?
|
||||
With the number of Elves given in your puzzle input, which Elf now gets all
|
||||
the presents?
|
||||
|
||||
Your puzzle input was 3014387.
|
||||
|
||||
Your puzzle answer was __________.
|
||||
Your puzzle answer was 1420064.
|
||||
|
||||
References
|
||||
|
||||
|
Reference in New Issue
Block a user