Skip to content

Commit 045f8fe

Browse files
committed
elixir(2023): Day 3 readme
1 parent 4cfcf1c commit 045f8fe

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

2023/elixir/03/README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Day 3: Gear Ratios
2+
3+
[https://adventofcode.com/2023/day/3](https://adventofcode.com/2023/day/3)
4+
5+
## Description
6+
7+
### Part One
8+
9+
You and the Elf eventually reach a [gondola lift](https://en.wikipedia.org/wiki/Gondola_lift) station; he says the gondola lift will take you up to the _water source_, but this is as far as he can bring you. You go inside.
10+
11+
It doesn't take long to find the gondolas, but there seems to be a problem: they're not moving.
12+
13+
"Aaah!"
14+
15+
You turn around to see a slightly-greasy Elf with a wrench and a look of surprise. "Sorry, I wasn't expecting anyone! The gondola lift isn't working right now; it'll still be a while before I can fix it." You offer to help.
16+
17+
The engineer explains that an engine part seems to be missing from the engine, but nobody can figure out which one. If you can _add up all the part numbers_ in the engine schematic, it should be easy to work out which part is missing.
18+
19+
The engine schematic (your puzzle input) consists of a visual representation of the engine. There are lots of numbers and symbols you don't really understand, but apparently _any number adjacent to a symbol_, even diagonally, is a "part number" and should be included in your sum. (Periods (`.`) do not count as a symbol.)
20+
21+
Here is an example engine schematic:
22+
23+
467..114..
24+
...*......
25+
..35..633.
26+
......#...
27+
617*......
28+
.....+.58.
29+
..592.....
30+
......755.
31+
...$.*....
32+
.664.598..
33+
34+
35+
In this schematic, two numbers are _not_ part numbers because they are not adjacent to a symbol: `114` (top right) and `58` (middle right). Every other number is adjacent to a symbol and so _is_ a part number; their sum is _`4361`_.
36+
37+
Of course, the actual engine schematic is much larger. _What is the sum of all of the part numbers in the engine schematic?_

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
----
44

55
- Elixir
6+
7+
2023
8+
----
9+
10+
- Elixir

0 commit comments

Comments
 (0)