r/adventofcode • • Dec 07 '25

SOLUTION MEGATHREAD -❄️- 2025 Day 7 Solutions -❄️-

SIGNAL BOOSTING

THE USUAL REMINDERS

  • All of our rules, FAQs, resources, etc. are in our community wiki.
  • If you see content in the subreddit or megathreads that violates one of our rules, either inform the user (politely and gently!) or use the report button on the post/comment and the mods will take care of it.

AoC Community Fun 2025: Red(dit) One

  • Submissions megathread is unlocked!
  • 10 DAYS remaining until the submissions deadline on December 17 at 18:00 EST!

Featured Subreddits: /r/DIWhy and /r/TVTooHigh

Ralphie: "I want an official Red Ryder, carbine action, two-hundred shot range model air rifle!"
Mother: "No. You'll shoot your eye out."
— A Christmas Story, (1983)

You did it the wrong way, and you know it, but hey, you got the right answer and that's all that matters! Here are some ideas for your inspiration:

💡 Solve today's puzzles:

  • The wrong way
  • Using only the most basic of IDEs
  • Plain Notepad, TextEdit, vim, punchcards, abacus, etc.
  • Using only the core math-based features of your language
  • e.g. only your language’s basic types and lists of them
  • No templates, no frameworks, no fancy modules like itertools, no third-party imported code, etc.
  • Without using if statements, ternary operators, etc.
  • Without using any QoL features that make your life easier
  • No Copilot, no IDE code completion, no syntax highlighting, etc.
  • Using a programming language that is not Turing-complete
  • Using at most five unchained basic statements long
  • Your main program can call functions, but any functions you call can also only be at most five unchained statements long.
  • Without using the [BACKSPACE] or [DEL] keys on your keyboard
  • Using only one hand to type

💡 Make your solution run on hardware that it has absolutely no business being on

  • "Smart" refrigerators, a drone army, a Jumbotron…

💡 Reverse code golf (oblig XKCD)

  • Why use few word when many word do trick?
  • Unnecessarily declare variables for everything and don't re-use variables
  • Use unnecessarily expensive functions and calls wherever possible
  • Implement redundant error checking everywhere
  • Javadocs >_>

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 7: Laboratories ---


Post your code solution in this megathread.

27 Upvotes

769 comments sorted by

View all comments

2

u/Vortetty Dec 07 '25

[Language: Python]

Today was an interesting one, the gif made by u/EverybodyCodes was the only reason i managed to get part 2 done though ;-;

Pts 1&2 combined: Codeberg Link

linegolfing it was supposed to be the hard part, but it has been by far the easiest part of aoc this year

1

u/daggerdragon Dec 07 '25 edited Dec 07 '25

Comment removed as your solution has your puzzle input hard-coded.

Do not share your puzzle input which also means do not commit puzzle inputs to your repo without a .gitignore or the like. Do not share the puzzle text either.

I see full plaintext puzzle inputs hardcoded in all files in your public repo e.g.:

https://codeberg.org/WinterSys/AOC/src/branch/master/2025

Please remove (or .gitignore) all puzzle text and puzzle input files (including hard-coded inputs) from your entire repo and scrub them from your commit history. This means from all prior years too!

Once you've done so, I will re-approve your comment. edit: 👍

1

u/Vortetty Dec 07 '25

git history has been wiped and all inputs are now format described instead of included in the repo.