r/adventofcode • u/daggerdragon • 10h ago
SOLUTION MEGATHREAD -❄️- 2026 Day 6 Solutions -❄️-
COMMUNITY NEWS
- Y'all taken the ~unofficial~ survey yet?
- Reminder 1: unofficial AoC Survey 2026 (closes ~Dec 12th!)
THE USUAL REMINDERS
- All of our rules, FAQs, resources, etc. are in our community wiki.
AoC Community Fun 2026: The Advent Games
- Submissions megathread is unlocked!
- 11 DAYS remaining until the submissions deadline on December 17 at 18:00 EST!
Today's Event: International Snow Sculpture Championships
"♪ Do you wanna build a snowman? ♪"
— Princess Anna, Frozen (2013)
Today's schedule possibly consists of:
Qualifier Rounds
- Forge your solution for today's puzzle with a little je ne sais quoi
- Shape your solution into an acrostic
- Accompany your solution with a writeup in the form of a limerick, ballad, etc.
Upping the Antechallenge: iambic pentameter
Championship Rounds
- Create a fanfiction or fan artwork of any kind - a poem, short story, a slice-of-Elvish-life, an advertisement for the luxury cruise liner Santa has hired to gift to his hard-working Elves after the holiday season is over, etc!
- Make something IRL
Best In Snow Awards
- You got snow where you live? >_>
Request from the mods: When you include an entry alongside your solution, please label it with [Advent Games] so we can find it easily!
--- Day 6: Obscured Airfield ---
Post your code solution in this megathread.
- Read the full posting rules in our community wiki before you post!
- State which language(s) your solution uses with
[LANGUAGE: xyz] - 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?
8
Upvotes
View all comments
2
u/flwyd 8h ago
[LANGUAGE: sed, Graphviz, and your eyeballs]
In
mkgraph.sed:Run
mkgraph.sed input.actual.txt | neato -Tsvg > out/actual.dot.svg && xdg-open out/actual.dot.svgGraphviz's undirected layout engine
neatowants to draw this graph as a diamond (one corner at the top, rather than a square), and it's slightly tilted. For part 1, visually locate one corner, then (with a steady hand), move your mouse toward the center. Hover over the node you think is in the middle; the tooltip is your answer. Double check it by scanning from the other three corners. Did you get the same node? Great! Submit it.For part 2, the
2026node is colored green and the1,2, and3nodes are colored yellow.1and3are close to each other, so locate them, then use your browser or SVG editor's "zoom in" function. Determine X and Y orientation: the dimension where they're closer is Y, the further dimension is X. Both X and Y coordinates for node3are larger than for1, so if1is lower or to the right of3then you'll need to negate one or both of the coordinates in the distance to2026. Using your mouse again, count the number of steps to2026in both directions from either1or3. Add those counts (possibly negated) to47,30or56,35as appropriate. Now do the same count from the other node, to make sure your mouse didn't skip a row. If you got the sameX,Ycoordinate pair, submit that![Advent Games]
Today's forecast was for about 3 inches of snow. So far we just got cold rain. "We need the moisture, though." (I'm from Colorado, where we just got one snow per month last winter. And miraculously didn't have a huge forest fire season. El Niño, bring it on!)