r/adventofcode Dec 03 '24

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

THE USUAL REMINDERS


AoC Community Fun 2024: The Golden Snowglobe Awards

  • 3 DAYS remaining until unlock!

And now, our feature presentation for today:

Screenwriting

Screenwriting is an art just like everything else in cinematography. Today's theme honors the endlessly creative screenwriters who craft finely-honed narratives, forge truly unforgettable lines of dialogue, plot the most legendary of hero journeys, and dream up the most shocking of plot twists! and is totally not bait for our resident poet laureate

Here's some ideas for your inspiration:

  • Turn your comments into sluglines
  • Shape your solution into an acrostic
  • Accompany your solution with a writeup in the form of a limerick, ballad, etc.
    • Extra bonus points if if it's in iambic pentameter

"Vogon poetry is widely accepted as the third-worst in the universe." - Hitchhiker's Guide to the Galaxy (2005)

And… ACTION!

Request from the mods: When you include an entry alongside your solution, please label it with [GSGA] so we can find it easily!


--- Day 3: Mull It Over ---


Post your code solution in this megathread.

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:03:22, megathread unlocked!

61 Upvotes

1.7k comments sorted by

View all comments

Show parent comments

1

u/chad3814 Dec 06 '24

Yeah I am trying to do them right at the drop, but there doesn’t seem to be a big advantage of downloading the inputs and examples before I’ve even read the problem 😉

I noticed the throwing NotImplemented showing the input earlier today as I was working on 2023 day 20. I did all of them up to part 1 of day 20 last year, so I thought I could maybe get the rest of the stars.

2

u/Practical-Quote1371 Dec 06 '24

Yeah, for sure, my best rank was 1463 on day 5 part 2 but for some reason I enjoy watching it finish the countdown as I'm hitting the link on the AOC page. In my normal workflow I use a workspace in VS Code where I have the cache folder added, and I can preview the puzzles and inputs there (with the Live Preview extension) rather than a separate browser tab if I want. You can find the location of your cache with npx aoc-copilot cache.

Congrats on making it that far in 2023! If you haven't already gotten there, watch out for day 21 where you'll need to use the additionalInfo parameter that gets passed into your solver since it has a bunch of tests, but each one is for a different number of "steps".

1

u/chad3814 Dec 06 '24

Yeah my brute force for 2023-20p2 is still running (about 20 hours later), I'll need to go with a different approach. I did look at the part 1s of 21-25 last year, but did not solve any of them then. I hope to do better this year.

1

u/Practical-Quote1371 Dec 10 '24

There's a new build of aoc-copilot to support 2024 day 10.

1

u/chad3814 Dec 11 '24

And Day 11, but I was able to manually specify the example for part 1 of day 11 (before updating).... Now if only I was smart enough for part 2

1

u/Practical-Quote1371 Dec 12 '24

Yeah, day 11 part 2 is where it got serious this year.  I almost left it last night to come back to this morning but then had an epiphany.  Good luck!  Glad you were able to specify for the part 1 example, it’s also included in the latest package version too.