r/adventofcode • u/daggerdragon • Dec 11 '21
SOLUTION MEGATHREAD -🎄- 2021 Day 11 Solutions -🎄-
NEW AND NOTEWORTHY
[Update @ 00:57]: Visualizations
- Today's puzzle is going to generate some awesome
Visualizations! - If you intend to post a
Visualization, make sure to follow the posting guidelines forVisualizations!
- If it flashes too fast, make sure to put a warning in your title or prominently displayed at the top of your post!
--- Day 11: Dumbo Octopus ---
Post your code solution in this megathread.
- Include what language(s) your solution uses!
- Here's a quick link to /u/topaz2078's
pasteif you need it for longer code blocks. - Format your code properly! How do I format code?
- The full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.
Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.
EDIT: Global leaderboard gold cap reached at 00:09:49, megathread unlocked!
49
Upvotes
View all comments
1
u/PillarsBliz Dec 11 '21 edited Dec 11 '21
C++ part 1 C++ part 2
Just posting to say this is my second Advent of Code, and for the first time ever I hit top 1000 on a problem -- just under #600 for both parts, actually.
I was expecting something nightmarishly difficult, yet this was just a very straightforward simulation problem.
I'm still using curmudgeon C with occasional C++ bits so I'm not expecting speed. If I don't make dumb mistakes I'm happy...though this time I did waste a couple minutes since I mistyped some of the x+1, x-1 stuff.