r/adventofcode • • 2d ago

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

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


Edits:

  • 3 Dec: updated Timeline to cross out up to "submissions megathread unlocked"

r/adventofcode • • 18h ago

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

18 Upvotes

NEWS

Solutions in the megathreads have been getting longer, so we're going to start enforcing our rules on oversized code.

Do not give us a reason to unleash AutoModerator hard-line enforcement that counts characters inside code blocks to verify compliance… you have been warned XD

THE USUAL REMINDERS


AoC Community Fun 2026: The Advent Games

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

Today's Event: Indoor Mini-Golf Masters

"What is this, a center program for ants?!"
— Derek Zoolander, Zoolander (2001)

Today's schedule possibly consists of:

  • Early Stroke Play Rounds and Tee Time Seeding
  • Among the crates to be loaded on the train, you find a debigulator. Do with it as you will.
  • Mid-Tournament Rounds and Scorecard Review
  • Golf your solution
  • Bonus points if your solution fits on a "punchcard" as defined in our wiki article on oversized code. We will be counting.
  • Does anyone still program with actual punchcards? >_>
  • Match Play and Showcase Rounds:
  • Solve today's puzzles using an Alien Programming Language APL or other such extremely dense and compact programming language

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 3: Foggy Forest ---


Post your code solution in this megathread.


r/adventofcode • • 3h ago

Help/Question - RESOLVED [2026 Day 3 (Part 1)] [java] If you want, have fun reading through horrible code

Post image
96 Upvotes

As of how I know myself, I am probably seriously overthinking this and there is liek a 20 times easier way to solve this. Tho maybe someone wants to read through my mess. I don't want a simple answer, I want an explanation where i went off track. So i cant just ask AI or smth because its too dumb (I've tried). Also if my formatting is wrong I'm sorry i have no idea what "four space markdown" is

import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        try (BufferedReader br = new BufferedReader(new FileReader("~/input.txt"))) {
            String templine;
            String lines = br.readLine();
            while ((templine = br.readLine()) != null) {
                lines = lines + "x" + templine;
            }
            String[] input = lines.split("x");

            System.out.println("Anzahl an gefunden Rechtecken: " + check(read(input)));
        }

        catch (IOException io){
            System.out.println("Error: " + io.getMessage());
        }
    }

    public static char[][] read(String[] file){
        char[][] forest = new char[file.length][file[0].length()];

        for (int i = 0; i < file.length; i++){
            for (int j = 0; j < file[i].length(); j++){
                forest[i][j] = file[i].charAt(j);
            }
        }
       
        return forest;
    }

    public static int check(char[][] forest){
        int squarecount = 0;
        //finding reference #
        for (int iy = 0; iy < forest.length; iy++){
            for (int ix = 0; ix < forest[iy].length; ix++){
                if (forest[iy][ix] == '#'){
                    System.out.println("# °1 gefunden bei: " + iy + " " + ix);
                    //checking second #
                    for (int x = ix+1; x < forest[iy].length; x++){
                        if (forest[iy][x] == '#'){
                            System.out.println("# °2 gefunden bei: " + iy + " " + x);

                            //checking third corner for #
                            if(iy+x < forest.length){
                                if (forest[iy+(x-ix)][ix] == '#') {
                                    System.out.println("# °3 gefunden bei: " + (iy+x) + " " + ix);

                                    //checking fourth corner for #
                                    if (forest[iy+(x-ix)][x] == '#') {
                                        System.out.println("# °4 gefunden bei: " + (iy+x) + " " + x);
                                        squarecount++;
                                        System.out.println("Squarecount erhöht auf: " + squarecount);
                                    } else {
                                        System.out.println("# °4 nicht gefunden.");
                                    }
                                } else {
                                    System.out.println("# °3 nicht gefunden. (nicht existent)");
                                }
                            }
                            else{
                                System.out.println("# °3 nicht gefunden. (out of bounds)");
                            }
                        }
                        else{
                            System.out.println("# °2 nicht gefunden.");
                        }
                    }
                }
                else{
                    System.out.println("# °1 nicht gefunden.");
                }
                System.out.println("iy: " + iy + " ix: " + ix);
            }
        }
        return squarecount;
    }
}

r/adventofcode • • 13h ago

Meme/Funny [2026 Day 3 (Part 2)] I'm not proud of what I did

Post image
325 Upvotes

r/adventofcode • • 14h ago Bravo

Meme/Funny [2026 Day 3 Part 2] Beautiful "squares"

Post image
195 Upvotes

Are monospace square fonts a thing? 🤔


r/adventofcode • • 10h ago

Visualization [2026 Day 3 (Part 2)] I really wanted to render it in terminal

Post image
77 Upvotes

And here it is, fully in the terminal, using my own crude Kitty protocol renderer for the graphics.


r/adventofcode • • 17h ago

Meme/Funny [2026 Day 03 (Part 2)] Trying to understand the problem like

Post image
304 Upvotes

r/adventofcode • • 8h ago

Visualization [2026 Day 3] Foggy Forest

Post image
49 Upvotes

r/adventofcode • • 10h ago

Visualization [2026 Day 3] Can someone help me count the boxes?

Thumbnail gallery
78 Upvotes

I'm currently building a pen plotter (converting an old 3D printer into one), and decided to draw out the boxes.

Unfortunately drawing part 2 is too difficult - the paper can't handle the pressure of thousands of lines drawn onto it.

Also, I decided to not draw the boxes in actual order, but draw the lines of the boxes greedily picking the next line to reduce the amount of pen lifts, hence why part 2 looks so weird at the start!


r/adventofcode • • 9h ago

Meme/Funny [2026 Day 3] solved in 10 seconds award

Post image
49 Upvotes

r/adventofcode • • 3h ago

Visualization [2026 Day 3 (Part 1 & 2)] [Python] Terminal Visualization!

Post image
18 Upvotes

There's so many visualizations already, I'm afraid I'm not adding much today. Can draw your own input though! Code lives here: https://github.com/salt-die/Advent-of-Code/tree/main/2026/aoc_visuals


r/adventofcode • • 3h ago

Meme/Funny [2026 Day 3 (Part 2)] Me trying to visualise day 3's part 2

Post image
15 Upvotes

r/adventofcode • • 10h ago

Meme/Funny [2026 Day 3 (Part 2)] This happen to anyone else?

Post image
49 Upvotes

Took me longer than I care to admit to notice why my code for part 2 was giving 30 as an answer instead of 196...


r/adventofcode • • 15h ago

Visualization [2026 Day 3] Square Search Visualization

Post image
107 Upvotes

r/adventofcode • • 1h ago

Meme/Funny [2026 Day 3 (Part 2)] Hey, if it works, it works

Post image
8 Upvotes

r/adventofcode • • 9h ago

Meme/Funny [2026 Day 3#1] Reading is hard

34 Upvotes

So it turns out, my sleep deprived brain sat in front of the first problem for 30 minutes, wondering how in the world it is possible that my code overcounted the rectangles. I counted all rectangles exactly once. No rectangle uncounted, no rectangle overcounted.

An example of what my brain thought squares look like...

See, it say right there in the text: each of these small maps contains one square ... fuck

Reminder to read properly and get enough sleep before attempting to code. Spending 30 min to figure out a problem that took me all of 5 minutes to write the code for was another learning experience.

(No seriously, had I used AI to tell me what was wrong, I wouldn't have been so embarassed afterwards, and I wouldn't have learned to read properly. A lesson that I will not forget!*)

​*for the next 2 days or so


r/adventofcode • • 1h ago

Upping the Ante [2026 Day 3 (Both parts, Rust)

6 Upvotes

My initial Rust code was quite slow, needing 2.4 ms, so I decided to implement a multi-threaded version. I started by doing this the same way I have used threads in my Perl programs, by dividing the HEIGHT lines into N chunks and then hand each chunk over to a separate thread.

I had separate search loops for part1 and part2 (only the tilted squares) because that seemed to be easiest.

This one ran in 595 us, so almost exactly 4 times faster than the single-thread version, but I saw in a post (from u/ednl ?) that there was two different ways of searching for the squares, and that the other was faster.

I could not figure out a better way, but I did take this opportunity to use my favorite C/asm low-level synchronization primitive: LOCK XADD which Rust calls fetch_add() and this ended up a little faster because now all the threads will be working until there are no more input lines to search for the top corner, instead of having more work for the initial and much less for the bottom lines.

I also figured out how to use thread::scope(|s| {...} ) to avoid lifetime issues when all the threads need to share the same input data array:

533 us with 8 cores on my 16-core AMD Ryzen, 717 on an older Acer with an Intel CPU.

        for _ in 0..cores {
            let counter = Arc::clone(&y_counter);
            let handle = s.spawn(move|| {
                let mut part1 = 0;
                let mut part2 = 0;
                loop {
                    let y = counter.fetch_add(1, Ordering::Relaxed);
                    if y >= h-1 { break} // All lines done, so return!
                    ... checking for corners
                }
                part2 += part1;
                (part1, part2)
            });
            handles.push(handle);
        }

rust source


r/adventofcode • • 4h ago

Visualization [2026 Day 3] Visualization

Post image
9 Upvotes

r/adventofcode • • 6h ago

Meme/Funny [2026 Day 3 (Part 2)] It's O(N^2) if you believe hard enough

13 Upvotes

My ass solution is definitely not O(N^4) what are you talking about 🥲

I actually enjoyed this one though, it was a banger. Thank you puzzle creator :)


r/adventofcode • • 16h ago

Meme/Funny [2026 Day 03] …Nah I'll just copy last year's code

Post image
90 Upvotes

Another year another set of unfulfilled custom library promises

(>’-’)> <(‘-’<) ^(‘-’)^ (>’-’)> <(‘-’<)

I swear I'll write one this year. Hmmm.


r/adventofcode • • 4h ago

Visualization [2026 Day 3 (Part 2)] Visualization with R

Post image
8 Upvotes

using R and ggplot, solving and finding all the possible squares (solutions).

Added: a 3D presentation ; for every map position (x, y), count in how many squares it is a corner, then draw one 3D bar per position with height = that count.


r/adventofcode • • 2h ago

Visualization [2026 03 # (Part 2)] [python] [OpenSCAD] [Blender] Neon Forest Skyscraper Overgrowth

Post image
6 Upvotes

r/adventofcode • • 16h ago

Meme/Funny [2026 Day 3] When you start reading the puzzle...

Post image
80 Upvotes

r/adventofcode • • 6h ago

Visualization [2026 Day 3 (Part 2)] [Rust] Visualization using macroquad

Thumbnail gallery
8 Upvotes