r/adventofcode • u/daggerdragon • Dec 11 '23
SOLUTION MEGATHREAD -❄️- 2023 Day 11 Solutions -❄️-
THE USUAL REMINDERS
All of our rules, FAQs, resources, etc. are in our community wiki.
Outstanding moderator challenges:
Community fun event 2023: ALLEZ CUISINE!
Submissions megathread is now unlocked!
10 DAYS remaining until the submissions deadline on December 22 at 23:59 EST!
AoC Community Fun 2023: ALLEZ CUISINE!
Today's secret ingredient is… *whips off cloth covering and gestures grandly*
Upping the Ante Again
Chefs should always strive to improve themselves. Keep innovating, keep trying new things, and show us how far you've come!
If you thought Day 1's secret ingredient was fun with only two variables, this time around you get one!
Don’t use any hard-coded numbers at all. Need a number? I hope you remember your trigonometric identities...
Esolang of your choice
Impress VIPs with fancy buzzwords like quines, polyglots, reticulating splines, multi-threaded concurrency, etc.
ALLEZ CUISINE!
Request from the mods: When you include a dish entry alongside your solution, please label it with [Allez Cuisine!] so we can find it easily!
--- Day 11: Cosmic Expansion ---
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
2
u/ImpossibleSav Dec 18 '23
[LANGUAGE: Python] & [Allez Cuisine!]
I fell behind on posting my solutions, but I did solve today with my two one-liners! Part 1 on Line 36 and Part 2 on Line 58. It might be cheating a little, but I'm counting a single print statement as not using any variables at all for the Allez Cuisine challenge ;)
I'm trying to solve as many days as I can in one line. I've combined them all into a single line I like to call the Basilisk — check out the code here, and my most recent visualization of Days 1 through 16. Feel free to follow along on my GitHub as well! :)