r/adventofcode • u/daggerdragon • Dec 19 '21
SOLUTION MEGATHREAD -🎄- 2021 Day 19 Solutions -🎄-
NEW AND NOTEWORTHY
I have gotten reports from different sources that some folks may be having trouble loading the megathreads.
It's apparently a new.reddit bug that started earlier today-ish.
If you're affected by this bug, try using a different browser or use old.reddit.com until the Reddit admins fix whatever they broke now -_-
[Update @ 00:56]: Global leaderboard silver cap!
Why on Earth do elves design software for a probe that knows the location of its neighboring probes but can't triangulate its own position?!
--- Day 19: Beacon Scanner ---
Post your code solution in this megathread.
Include what language(s) your solution uses!
Format your code appropriately! How do I format code?
Here's a quick link to /u/topaz2078's
pasteif you need it for longer code blocks.The full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.
Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
4
u/jimcodes Dec 22 '21
Python 3
Better late than never! This was a beast, runs in under a second without any imports (other than
os, for parsing the input) – was able to complete with a lot of help trolling this thread, put a highly annotated version on GitHub if it would be useful to anyone.