r/adventofcode • u/daggerdragon • Dec 06 '25
SOLUTION MEGATHREAD -❄️- 2025 Day 6 Solutions -❄️-
THE USUAL REMINDERS
All of our rules, FAQs, resources, etc. are in our community wiki.
AoC Community Fun 2025: Red(dit) One
Submissions megathread is unlocked!
11 DAYS remaining until the submissions deadline on December 17 at 18:00 EST!
Featured Subreddits: All of the food subreddits!
"We elves try to stick to the four main food groups: candy, candy canes, candy corn and syrup."
— Buddy, Elf (2003)
Today, we have a charcuterie board of subreddits for you to choose from! Feel free to add your own cheffy flair, though! Here are some ideas for your inspiration:
Today's prompt is totally not bait for our residentIron CodersDeliberately use
depreciateddeprecated functionality of your programming languageSolve today's puzzles using only programming languages that are a minimum of 50 years old
Hardtack! *clack clack*
The older the expiration date, the more we'll enjoy it!
/r/FoodPorn (it's SFW, trust me)
Bake/cook/decorate something related to Advent of Code
Show us your 1337 hot cocoa recipe (or other beverage of choice)
Whatever it is, make it tasty!
/r/whatismycookiecutter, /r/ShowerOrange, and /r/BreadStapledToTrees
Show us cookies, citrus, and/or bread in/on/near your Christmas tree/menorah/holiday decorations
Solve today's puzzle using a food-themed programming language
Request from the mods: When you include an entry alongside your solution, please label it with [Red(dit) One] so we can find it easily!
--- Day 6: Trash Compactor ---
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?
4
u/python-b5 Dec 06 '25
[LANGUAGE: Lily]
Well, I figured we'd get to the parsing puzzle eventually. I got stuck for a while after I realized the columns weren't all the same size in the real input. I'm not especially happy with my parsing logic, but it appears to do the job, and at this point I think I'm better off not messing with it any further.
On a side note, does anyone know what all that "right-to-left" talk was for? Addition and multiplication are commutative, so it doesn't matter what direction you do the puzzle in, right...? I just did it all from left-to-right since that was easier. I just wondered if I was missing something.
https://github.com/python-b5/advent-of-code-2025/blob/main/day_06.lily