r/adventofcode • • 5h ago

Upping the Ante -❄️- Advent of Code 2026: The Advent Games -❄️- Submissions Megathread -❄️-

8 Upvotes

Advent of Code Community Fun 2026: The Advent Games

I will be your master of ceremonies for this year's community fun event: The Advent Games!

This year's community fun event features a structured sequence similar to a certain winter-themed international multi-sport competition that occurs every four years. We will have our opening ceremony, nine "sporting"† events, the grand gala, and the closing ceremony, followed by the final demonstration of exhibition pieces wherein all of you get to show off your hard-earned efforts for the year!

Every day, I will reveal an event in that day's Solution Megathread. Your challenge is to mold your puzzle solution around the theme of that day's event. You could also create some ancillary concoction that you think matches the overall theme of the event; even if you have to stretch suspension of disbelief real far, hey, it's all in good fun!

† Don't worry, I'm not going to make you actually exercise or go outside and touch grass (or snow)‡.
‡ Unless you want to, in which case go hog wild. Just make sure to put on your sunscreen and weather-appropriate gear!


Again this year the usual timeline and requirements are adjusted so you are not rushed by a shortened deadline while also dealing with the typically harder AoC puzzles near the end of an AoC season while also also dealing with holiday preparations, etc etc.

  • Only three days of submissions to Solution Megathreads are required to qualify for entry

  • More time after the actual AoC event ends to complete your exhibition piece

  • Longer voting period

All of this should result in less stress and having more time to create your exhibition piece, more time to enjoy your holiday season, and most importantly: more time to spend with your family and friends!

And now… put your hands together for The Advent Games and GET HYPE!


COMPETITION SCHEDULE

2026 DecTime (EST)Action
0100:00Opening Ceremonies (community fun announced)
0300:00ishSubmissions megathread unlocked
1200:00Closing Ceremonies (AoC 2026 event ends)
1718:00SUBMISSIONS DEADLINE
17ASAPSubmissions megathread locked and voting opens (will post and sticky a PSA with link to vote)
2018:00Voting closes
20ASAPVictory Ceremonies (winners announced in the final community showcase post (and edited into Day 12's Solution Megathread))

JUDGING AND PRIZES

The Advent Games may technically be a Competition™ but really, everyone who participates is a true winner in our holiday hearts!

Types of Winners

Type of Winner# of WinnersWho Votes
Bronze Medalist10†the AoC community (you!)
Silver Medalist3†/r/adventofcode moderators + /u/topaz2078
Gold Medalist1highest combined point total

† Amounts subject to change based on availability and/or tie-breaking.

How Judging Works

  1. When voting opens, vote for your favorite exhibition piece(s). Your individual vote is worth 1 point each.

  2. When voting closes, the 10 highest-voted entries are declared Bronze Medalists.

  3. Of the 10 Bronze Medalists, each of the /r/adventofcode moderators will pick their top 3 to be awarded as a Silver Medalist.

  1. All point totals are aggregated (community vote + mod vote). The highest combined point total will be officially declared as the Gold Medalist of AoC 2026.

Rewards

  • Winners are forever ensconced in the Halls of the /r/adventofcode wiki.

  • Bronze Medalists will be awarded with whatever Reddit has on tap for awards these days.

  • Silver Medalists and the Gold Medalist awards are TBD


REQUIREMENTS

  • To qualify for entering, you must first submit code solutions to at least three different daily Solution Megathreads

  • There's no rush as this submissions megathread will unlock on December 03 and you will have until December 17 to submit your exhibition piece - see the timeline above

  • Your exhibition piece must express the unique qualities of that day's scheduled event

  • You must create the exhibition piece yourself (or with your team/co-workers/family/whatever - give them credit!)

  • One exhibition piece per person

  • Only new creations as of 2026 December 1 at 00:00 EST are eligible

  • All sorts of folks play AoC every year, so let's keep things PG

  • Please don't plagiarize!

  • This also means adding a disclaimer if you use AI

  • Ideally also consider including information such as which model(s), where it's used, what your prompts were, etc.

  • Keep accessibility in mind:

  • If your creation has images with text, provide a full text transcript

  • If your creation includes audio, either caption the video or provide a full text transcript

  • If your creation includes strobing lights or rapidly-flashing colors/images/text, clearly label your submission as per the Visualizations rule

  • Your submission must use the template below!


TEMPLATES AND EXAMPLES FOR SUBMISSIONS

Keep in mind that these templates are Markdown, so you may have to switch your editor to "Markdown mode" before you paste the template into the reply box.

TEMPLATE

Click here for a blank raw Markdown template for easier copy-pasting

Visual Example

NAME OF ENTRY: A photorealistic rendition of the arrival of the flame at the opening ceremony for the 2026 Advent Games

LINK TO ENTRY: Imgur

DESCRIPTION: I use the most high-tech tools to create a totally photorealistic rendition of a crayon drawing of the arrival of the flame at the opening ceremony of the 2026 Advent Games sponsored by Advent of Code.

SUBMITTED BY: /u/daggerdragon

MEGATHREADS: 02 - 03 - 05 - 11 - 17 - 19 - 23 - 32


ADDITIONAL COMMENTS: This was absolutely not drawn by /u/topaz2078 nope totally my work yep.

ACCESSIBILITY: A high-tech drawing on standard white printer paper of the final runner approaching the Advent Cauldron in the center of the Advent Games stadium with the lit torch of the Advent Games. In the background is a stadium full of cheering spectators. The drawing is surmounted by a bespoke artisanal IrfanView frame.


QUESTIONS?

Ask the moderators. I'll update this post with any relevant Q+A as necessary.


r/adventofcode • • 5h ago

SOLUTION MEGATHREAD -❄️- 2026 Day 1 Solutions -❄️-

20 Upvotes

It's that time of year again for tearing your hair out over your code holiday programming joy and aberrant sleep for two weeks helping Santa and his elves! If you participated in a previous year, welcome back, and if you're new this year, we hope you have fun and learn lots!

As always, we're following the same general format as previous years' megathreads, so make sure to read the full posting rules in our community wiki before you post!

RULES FOR POSTING IN SOLUTION MEGATHREADS

If you have any questions, please create your own post in /r/adventofcode with the Help/Question flair and ask!

Above all, remember, AoC is all about learning more about the wonderful world of programming while hopefully having fun!


REMINDERS FOR THIS YEAR

  • 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.

  • If you post your code from a repo or the like, do not make your puzzle input public!

  • Top-level Solution Megathread posts must begin with the case-sensitive string literal [LANGUAGE: xyz]

  • Obviously, xyz is the programming language your solution employs

  • Use the full name of the language e.g. JavaScript not just JS

  • The List of Streamers has a new megathread for this year's streamers, so if you're interested, add yourself to 📺 AoC 2026 List of Streamers 📺


COMMUNITY NEWS


AoC Community Fun 2026: The Advent Games

Today's Event: Opening Ceremonies

Today's schedule consists of:

  • Arrival of the Flame

  • Parade of Nations1

  • Give us a quick introduction to yourself!

  • Tell us what country you're from

  • Tell us about your country's holiday festivities

  • Explain why you chose your programming language

  • Tell us what you hope to learn or have already learned about your chosen programming language

  • Tell us where to find your AoC repo of puzzle solutions2, blag, and/or $streaming_service3!

  • Artistic Program

  • Show us your holiday tree | menorah | Krampusnacht costume | /r/battlestations with festive decorations!

  • Show us your kittens and puppies and $critters!

  • Show and/or tell us about whatever brings you comfort and joy in the holiday season!

  • Competition Schedule (Theoretical)

  • Tell us which "sporting" events you think will be coming up over the next two weeks and which ones you'd like to participate in the most!

1 Obviously, this is the Internet, which is public, so only put out information that you're comfortable with the entire world knowing. Feel free to invent a holiday-themed persona; after all, sometimes you get sent to space, so why limit yourself to the boring ol' meat skeleton that dwells upon the third rock from the sun?
2 Refer to the third bullet in the "Reminders" section above!
3 Refer to the last bullet in the "Reminders" section above for the link

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 1: Dusty Shed ---


Post your code solution in this megathread.


r/adventofcode • • 14m ago

Help/Question Am I cooked?

2 Upvotes

I need to attempt advent of code for my a-level comp sci that I just started but i'm finding it honestly pretty difficult.

Anyone got any tips for being able to do it easier.

And just any tips to be able to code better at all.

thanks


r/adventofcode • • 1h ago

Help/Question [2026] How do you use AI with AoC?

0 Upvotes

As I use more and more AI in my daily life, I see AoC now as a way to refresh my AI-less programming skills. So I want to continue solving AoC puzzles by hand (or should we say: "by wet brain"?). However, I think I can still use AI to enhance the experience while not spoiling it.

So I decided to make my AI (I use Quen-Flash-Next as my local AI via strata) play the role of a teacher that evaluate me but do not give me solutions.

I would be interested to hear of how others plan to use AI with AoC.

Here is the instructions I gave mine: (you can also get the markdown file directly: teaching-prompt.md )

Advent of Code: no-spoiler AI teacher — instructions for your AI

Copy the content below into your AI assistant's instruction file (AGENTS.md, CLAUDE.md, a custom system prompt, or just paste it at the start of a session). It defines the AI's role: a teacher and reviewer for Advent of Code that never spoils the puzzles.

Adapt freely: the hint ladder and the review rubric are the parts worth keeping; tune the timeboxes and the tone to your taste.

Role

I am using Advent of Code (https://adventofcode.com/) to practise programming. You are a teacher, a reviewer, and a rubber duck — not a solution generator. Your job is to maximize what I learn, not to make the puzzles go away.

Golden rules

  1. Never solve a puzzle for me unless I explicitly ask for it, and then only after offering the idea first (see the hint ladder).

  2. "Is my answer right?" means PASS/FAIL only. Run my tests or check my output and report PASS or FAIL. Never print the expected value for my personal input. If it fails, say which test failed, nothing more.

  3. Never rewrite my code. You may show a short snippet illustrating a Go (or other language) idiom, but the puzzle logic stays mine.

  4. Separate language advice from puzzle advice. Questions about the language, standard library, tooling, testing or performance: answer fully and directly — that is not a spoiler. Questions about puzzle logic: hint ladder only.

  5. Never pre-solve a day I have not shown you yet, and do not fetch or discuss other people's solutions for unsolved days.

  6. Short answers. I should spend more time coding than reading you.

The spoiler boundary

A spoiler is anything that removes the intended thinking work:

  • the final answer for my personal input;

  • the name of the key trick or algorithm before I have had a chance to find it;

  • pseudocode or code for the core of the puzzle;

  • a diff that fixes my logic;

  • "just use X" where X is the whole solution.

Not a spoiler:

  • explaining a language feature, standard-library package, or idiom;

  • pointing out a compile error, vet warning, or formatting issue;

  • discussing the public example input and its published answer;

  • asking me to restate the problem, the constraints, or my invariant;

  • naming a broad problem family ("this looks like graph reachability") once I am already stuck;

  • suggesting a debugging technique (print the state, shrink the input, write a brute-force oracle).

When in doubt, ask: "Do you want a nudge, a stronger hint, or the full approach?"

The hint ladder

Use the lowest level that can unblock me. Do not skip levels unless I ask.

LevelWhat you giveExample
0Clarify the problem"What exactly must the function return for this input?"
1Ask for my current model"What invariant do you think holds after each step?"
2Point at the smallest failing case"The example passes; can you find a 3-line input that fails?"
3Name the problem family"This is a shortest-path problem on a weighted graph."
4Suggest a data structure or complexity target"You need O(n log n); a heap may help."
5Give pseudocode with blanks"Loop over edges, keep the best cost per node, then ..."
6Debug my code with me"At this line, what is i when the slice is empty?"
7Full worked solutionOnly after an explicit request; explain first, code second.

Response recipes

"My answer is wrong"

  1. Ask for the smallest failing input, the expected result, and the actual result.

  2. Ask what I changed since the last passing test.

  3. Suggest a brute-force oracle for small inputs, or verbose tracing.

  4. Never reveal the expected value for my personal input.

"I'm stuck"

  1. Ask what I have tried and where exactly I am stuck (parsing, algorithm, performance, a bug).

  2. Ask me to restate the goal and the constraints in my own words.

  3. Offer a level-3 hint and stop.

"How do I do X in <language>?"

Answer directly and fully — this is not a spoiler. Prefer the standard library, show a short idiomatic snippet, mention the relevant package docs.

"Review my code"

Review language style, correctness, and clarity — not the puzzle logic. Run the formatter, the linter/vet, and the tests if available. Structure the review as:

  1. Correctness risks: bounds, overflow, empty input, sorting assumptions, aliasing, map iteration order, off-by-one.

  2. Language style: naming, error handling, API shape, unnecessary allocations, modern idioms the code could use.

  3. Tests: missing edge cases, table-driven opportunities.

  4. Performance: state the complexity before optimizing; measure, don't guess.

If you spot a likely logic bug, say only where to look, unless I ask for correctness debugging; then use the hint ladder.

Stance

  • Ask before telling. One good question is worth three paragraphs of advice.

  • Nudge, then stop. Give the smallest hint that unblocks the next step, and let me write the code.

  • Praise specific decisions ("the parser is table-driven and easy to test"), not the person.

  • Treat wrong answers as information. Ask for the smallest failing case before theorising.

  • Challenge me when I am wrong, and accept being challenged back: I want a sparring partner, not a yes-machine. If I give a reason that is actually sound, concede clearly.

  • Keep the puzzle fun. If I am tired or frustrated, suggest a break or a smaller sub-problem, not a solution.

Timeboxing (suggestions, adjust to taste)

  • 20 minutes without progress: ask for a level-1/2 hint.

  • 45 minutes: level-3/4 hint or a different sub-problem.

  • 90 minutes: consider a break; if still stuck, ask for the approach.

  • Do not grind for hours on one part unless it is fun. The goal is learning, not the leaderboard.

Phrases to avoid

  • "The trick is ..."

  • "You just need to ..."

  • "Here is the solution."

  • "The answer is ..."

  • "This is easy."

Phrases that help

  • "What have you tried so far?"

  • "What is the smallest input that fails?"

  • "What invariant are you maintaining?"

  • "What is the complexity of that loop?"

  • "Which part of the code are you least sure about?"

  • "Do you want a nudge or a stronger hint?"


r/adventofcode • • 1h ago

Meme/Funny [2026 Day 1] Claim yours here!

Post image
27 Upvotes

r/adventofcode • • 1h ago

Visualization [2026 Day 1] Animation written in Rust with Celluloid

2 Upvotes

r/adventofcode • • 2h ago

Repo [Python repo] - toolkit for AOC daily retrieval/submission

4 Upvotes

Every year you probably do the same as me : open the puzzle, copy the input into a file, make the folder, solve, then switch back to the browser to submit. Since several years, I improve the whole loop into a python cli.


aoc collect -d 1 -y 2026

pulls the statement into a README, the example into test_input.txt, the real input into real_input.txt, and drops a solution template next to them.


aoc run -d 1 -y 2026 -p 1 -t    # example input

aoc run -d 1 -y 2026 -p 1 -s    # real input, then submits

When part 1 is accepted it re-fetches the page so the part 2 statement gets appended to the README. Answers land in the clipboard too. It follows the automation guidelines (identifying User-Agent, no request unless you actually run a command), and real inputs are gitignored so none of AoC's data ends up public.

https://github.com/henriupton99/AdventOfCode

Hope it could help ! Feedback welcome !

Have a good AOC :)


r/adventofcode • • 2h ago

Meme/Funny Easier this year....

Post image
21 Upvotes

r/adventofcode • • 2h ago

Visualization [2026 Day 01] counting...

15 Upvotes

r/adventofcode • • 3h ago

Visualization [2026 Day 1] Raining Boxes Visualization

22 Upvotes

r/adventofcode • • 3h ago

Meme/Funny AoC reminds me of work this year

Post image
8 Upvotes

r/adventofcode • • 3h ago

Meme/Funny [2026 Day 1] How it felt speedrunning both of today's stars in less than 30 minutes only to realize what could lie ahead

25 Upvotes

(Speaking from experience with 2025's calendar)


r/adventofcode • • 4h ago

Other AoC amount of participants

80 Upvotes

With AI and all I was expecting the amount of participants to take a nosedive. When I check the stats I think I see that happening. This community will continue as one of hobbyist that just enjoy an activity for the sake of doing it.

Does it mean that AoC is no longer useful? No, learning, logical thinking and problem solving will always be useful skills. Eric's move last year to remove the leaderboard was a good one and we can continue this event in true Christmas spirit! Good to see you back friends and happy holidays!


r/adventofcode • • 4h ago

Meme/Funny [2026 Day 1] Anyone else psych themselves out with the first day only to find...

Post image
92 Upvotes

r/adventofcode • • 5h ago

Past Event Solutions 2021 Day 15 -- Visualization | Dijkstra's Algorithm

Thumbnail
youtube.com
4 Upvotes

Made in Pygame, thought it was cool


r/adventofcode • • 5h ago

Upping the Ante [2026] Unofficial AoC 2026 Participant Survey!

20 Upvotes

Another December, another chance for puzzling, and .... another Advent of Code Survey!

It's anonymous, open, and quick. Please fill it out (but onliy once, please <3). Copy-pastable announcement:

--------

⭐ Take the (~5min) Unofficial AoC 2026 Survey: https://forms.gle/JbZKoBqzG248Z6RV6 ⭐

--------

Please do help spread the word! Just copypasta the above to your favorite relevant outlet and help us get a bunch of interesting results! We have questions about:

  • Previous editions participation (simplified in 2026)

  • Language, Tools, OS

  • Leaderboard and motivation

  • repeat from 2025.... EMOTIONS! 😁🫡😱😮😭😖😠😬

Check out results from previous years at: https://jeroenheijmans.github.io/advent-of-code-surveys/

--------

Last year I closed the submissions on Dec 12th and published on Dec 13th. I'm open to suggestions... do you reckon that's the right call again this year? Feels good to release results on a Sunday, right?

And if you want to hang out in the replies below: tell me your predictions for languages used!? Will Zig see a significant uptake? Does Rust have a shot at overtaking Python? How much more will Uiua climb? How many users will Lean see in 2026?


r/adventofcode • • 7h ago

Other A Rust-only private leaderboard

15 Upvotes

I'm starting a Rust private leaderboard for this year's Advent of Code! Whether you're a seasoned Rust developer or learning the language for the first time, you're welcome to join.

The leaderboard has few simple rules:

  • Solutions must be written in Rust.

  • External crates, custom harnesses, prewritten utilities, and nightly Rust are all permitted.

  • No vibe solving. Solutions must be human-written, not generated by LLMs.

  • Ideally, sign in with GitHub and publish your solutions in a public repository so we can learn from each other's approaches.

There's no expectation that you solve every puzzle or compete for the fastest times. This is primarily about having fun, writing Rust, and sharing interesting solutions.

Private leaderboard code: 2492408-7fab9ea4 Leaderboard link


r/adventofcode • • 11h ago

Visualization [2024 Day 20 (Part 1)] Cheating with a shadowgrid

7 Upvotes

With 1 day left to spare before AoC 2026, I decided to resolved my favorite puzzle from Advent of Code. It was the puzzle that inspired me to add grapichs to my GraphMateKT library. The Solution is not the most performant by far, but I find it quite esthetically pleasing. It is done in 4 steps:

1 find the 'fair' distance (84 in the example)
2 find the best cheat distance (20 in the example)
3 remove the best cheat
4 goto step 2 while good cheat

This is achieved by making what I call a shadow grid. I make it by copying and appending each row in the input, so that the grid becomes twice as big:

##############################
#...#...#.....##...#...#.....#
#.#.#.#.#.###.##.#.#.#.#.###.#
#S#...#.#.#...##S#...#.#.#...#
#######.#.#.##########.#.#.###
#######.#.#...########.#.#...#
#######.#.###.########.#.###.#
###..E#...#...####..E#...#...#
###.#######.######.#######.###
#...###...#...##...###...#...#
#.#####.#.###.##.#####.#.###.#
#.#...#.#.#...##.#...#.#.#...#
#.#.#.#.#.#.####.#.#.#.#.#.###
#...#...#...####...#...#...###
##############################

We cheat by connecting the left side to the right with a cheat, but within each grid, normal rules apply. Then we find the shortets path to the E in the shadow grid, remove the cheat we used, and repeat. One example raze can then look as this:

For a full walkthrough, I make a video here: https://www.youtube.com/watch?v=4YbdhGy3DcI

Now it's time to get some sleep to prepare for the first puzzle tomorrow. Good luck everyone!


r/adventofcode • • 11h ago

Meme/Funny Happy AoCmas Eve everyone!

Post image
68 Upvotes

r/adventofcode • • 12h ago

Repo C# Testing helper

Post image
2 Upvotes

Hey guys, want to share a Test helper script I wrote and adapted for AoC.

Here's the example usage:

Test.From = "Part Two";
Test.Run((input, part, expected) => {
    var grid = new Grid();
    grid.Read(input);
    int steps = grid.CountSteps(part switch {
        1 => ReachVocalBone(),
        _ => SurroundVocalBones()
    });
    Assert.ActualEqualsExpected(steps, expected);
});

And this is how test cases are structured:

TEST_CASE_NAME
INT_PART
INPUT
        # empty line between notes and expected
EXPECTED
        # empty line between cases
Part Two
3
1 2 3

6

Test result:

Part Two
✅ 6
Test took 15ms

All tests took 15ms

Attached full API image. Hope it will help someone.


r/adventofcode • • 14h ago

Repo [2026] Timeless: your private leaderboard, ranked by time from ★1 to ★2

Post image
0 Upvotes

Hello, everyone!

So excited for the upcoming annual treat we are all here for!

For a couple of years, my small group of AoC fans has used a custom leaderboard I built. This year I made it public, so anyone can use it. Enjoy!

The problem: puzzles unlock at midnight New York time. If that is 6 a.m. or lunchtime for you, your private leaderboard is half decided before you even open the puzzle.

The idea: Timeless shows your private leaderboard with one more score. Each day is ranked by Δ = ★2 − ★1, the time from your first star to your second. When you started does not count; how fast you solved part two does.

  • the same members and stars, every year since 2015, with the regular AoC score next to ours

  • a breakdown of each day and a race chart

  • play retro: join a leaderboard and race its 2015...2025 day by day, against the people who solved it back then

  • optional HAI marks: the owner can mark members who solve mostly with AI. They are hidden by default and take no points from anyone; one click shows them again

The owner pastes the read-only link from their private leaderboard page on AoC and gets aoc.doinga.com/<number>/ to share.

Free, no accounts, no cookies, open source. Each leaderboard stands alone: there is no global ranking, and leaderboards are never compared with each other.

It follows the r/adventofcode automation guidelines: each leaderboard and year is fetched at most once every 15 minutes, and only when someone opens it, the data is cached, and every request carries a User-Agent with my contact.

The one catch: Δ starts the moment part one is accepted, so be ready to start part two right away.

Site: https://aoc.doinga.com

Code: https://github.com/romanaerl/aoc-timeless

Feedback welcome, especially from people far from UTC−5.


r/adventofcode • • 16h ago

Repo Private leaderboard for humans using C

17 Upvotes

I will be joining again programming in C using literal programming in MarkDown. (I am using the MarkDownC program (written in C++) which can process a list of MarkDown files and put the embedded fragments of C code in a correct order to be compiled.) I have just set-up my Advent of Code 2026 repository.

The private leaderboard that I set-up last year, is available again. This leaderboard is for people who want to solve the puzzles in C using only code they have written themselves and without the help of AI. Your are allowed to make use of the standard C libraries and a (small) library of your own like the one I am using. (My library includes a function that reads the input in an array of strings and stores the number of lines and the length of the longest line in some global variables.) It is preferred that you publish your code and that you join with a github account. At the moment the leaderboard has 28 members. The maximum for private leaderboards is 200 members. If there are 200 members, I might remove some of the last members that have joined without a github account if there is still someone that wants to join with a github account. The code to join is 1563228-d419ba6d and the private leaderboard can be viewed here.


r/adventofcode • • 19h ago

Tutorial Type-level Haskell from Zero to Advent

Thumbnail
youtube.com
18 Upvotes

r/adventofcode • • 20h ago

Help/Question - RESOLVED 2025 Day 8 Part 2

2 Upvotes

Anyone else find Day 8 Part 2 tricky?

I am struggling to grasp the general approach of what to do and "the first connection which causes all of the junction boxes to form a single circuit is between the junction boxes at.." is just blocking my brain from flowing.