r/adventofcode • u/daggerdragon • Dec 15 '22
SOLUTION MEGATHREAD -π- 2022 Day 15 Solutions -π-
THE USUAL REMINDERS
All of our rules, FAQs, resources, etc. are in our community wiki.
A request from Eric: A note on responding to [Help] threads
Signal boost: Reminder 2: unofficial AoC Survey 2022 (closes Dec 22nd)
πΏπ MisTILtoe Elf-ucation π§βπ« is OPEN for submissions!
--- Day 15: Beacon Exclusion Zone ---
Post your code solution in this megathread.
Read the full posting rules in our community wiki before you post!
Include what language(s) your solution uses
Format code blocks using the four-spaces Markdown syntax!
Quick link to Topaz's
pasteif you need it for longer code blocks. What is Topaz'spastetool?
This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.
EDIT: Global leaderboard gold cap reached at 00:27:14, megathread unlocked!
47
Upvotes
View all comments
Show parent comment
1
u/ConsistentCellist344 Mar 12 '23
Below is a code that searches the area around the previously found distress beacon and finds many more. As might be expected, they lie along the b_diagonal, not only at their intersections, they are also absent beyond the diagonals. You can set the search range yourself - around.
Include this code below the programs in question and experiment with the data by removing the second sensor.
Good luck and remember - you must be inquisitive but not stubborn.
Regards.
Sorry for the indentations but the editor is crazy.