108 lines
3.4 KiB
Plaintext
108 lines
3.4 KiB
Plaintext
[1]Advent of Code
|
||
|
||
• [2][About]
|
||
• [3][Events]
|
||
• [4][Shop]
|
||
• [5][Settings]
|
||
• [6][Log Out]
|
||
|
||
br0xen [7](AoC++) 6*
|
||
|
||
{year=>[8]2024}
|
||
|
||
• [9][Calendar]
|
||
• [10][AoC++]
|
||
• [11][Sponsors]
|
||
• [12][Leaderboard]
|
||
• [13][Stats]
|
||
|
||
Our [14]sponsors help make Advent of Code possible:
|
||
[15]Boot.dev - Do Adventers-of-Code make the best backend devs? We think
|
||
so! If you want to master backend development in Python, SQL, and Go, then
|
||
try our hands-on courses on Boot.dev! Get 25% off first payment w/promo
|
||
ADVENTOFCODE
|
||
|
||
--- Day 4: Ceres Search ---
|
||
|
||
"Looks like the Chief's not here. Next!" One of The Historians pulls out a
|
||
device and pushes the only button on it. After a brief flash, you
|
||
recognize the interior of the [16]Ceres monitoring station!
|
||
|
||
As the search for the Chief continues, a small Elf who lives on the
|
||
station tugs on your shirt; she'd like to know if you could help her with
|
||
her word search (your puzzle input). She only has to find one word: XMAS.
|
||
|
||
This word search allows words to be horizontal, vertical, diagonal,
|
||
written backwards, or even overlapping other words. It's a little unusual,
|
||
though, as you don't merely need to find one instance of XMAS - you need
|
||
to find all of them. Here are a few ways XMAS might appear, where
|
||
irrelevant characters have been replaced with .:
|
||
|
||
..X...
|
||
.SAMX.
|
||
.A..A.
|
||
XMAS.S
|
||
.X....
|
||
|
||
The actual word search will be full of letters instead. For example:
|
||
|
||
MMMSXXMASM
|
||
MSAMXMSMSA
|
||
AMXSXMAAMM
|
||
MSAMASMSMX
|
||
XMASAMXAMM
|
||
XXAMMXXAMA
|
||
SMSMSASXSS
|
||
SAXAMASAAA
|
||
MAMMMXMMMM
|
||
MXMXAXMASX
|
||
|
||
In this word search, XMAS occurs a total of 18 times; here's the same word
|
||
search again, but where letters not involved in any XMAS have been
|
||
replaced with .:
|
||
|
||
....XXMAS.
|
||
.SAMXMS...
|
||
...S..A...
|
||
..A.A.MS.X
|
||
XMASAMX.MM
|
||
X.....XA.A
|
||
S.S.S.S.SS
|
||
.A.A.A.A.A
|
||
..M.M.M.MM
|
||
.X.X.XMASX
|
||
|
||
Take a look at the little Elf's word search. How many times does XMAS
|
||
appear?
|
||
|
||
To begin, [17]get your puzzle input.
|
||
|
||
Answer: [18]_____________________ [19][ [Submit] ]
|
||
|
||
You can also [Shareon [20]Bluesky [21]Twitter [22]Mastodon] this puzzle.
|
||
|
||
References
|
||
|
||
Visible links
|
||
1. https://adventofcode.com/
|
||
2. https://adventofcode.com/2024/about
|
||
3. https://adventofcode.com/2024/events
|
||
4. https://cottonbureau.com/people/advent-of-code
|
||
5. https://adventofcode.com/2024/settings
|
||
6. https://adventofcode.com/2024/auth/logout
|
||
7. Advent of Code Supporter
|
||
https://adventofcode.com/2024/support
|
||
8. https://adventofcode.com/2024
|
||
9. https://adventofcode.com/2024
|
||
10. https://adventofcode.com/2024/support
|
||
11. https://adventofcode.com/2024/sponsors
|
||
12. https://adventofcode.com/2024/leaderboard
|
||
13. https://adventofcode.com/2024/stats
|
||
14. https://adventofcode.com/2024/sponsors
|
||
15. https://adventofcode.com/2024/sponsors/redirect?url=https%3A%2F%2Fwww%2Eboot%2Edev%3Fpromo%3DADVENTOFCODE
|
||
16. https://adventofcode.com/2019/day/10
|
||
17. https://adventofcode.com/2024/day/4/input
|
||
20. https://bsky.app/intent/compose?text=%22Ceres+Search%22+%2D+Day+4+%2D+Advent+of+Code+2024+%23AdventOfCode+https%3A%2F%2Fadventofcode%2Ecom%2F2024%2Fday%2F4
|
||
21. https://twitter.com/intent/tweet?text=%22Ceres+Search%22+%2D+Day+4+%2D+Advent+of+Code+2024&url=https%3A%2F%2Fadventofcode%2Ecom%2F2024%2Fday%2F4&related=ericwastl&hashtags=AdventOfCode
|
||
22. javascript:void(0);
|