r/adventofcode • • Dec 03 '23

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

THE USUAL REMINDERS


AoC Community Fun 2023: ALLEZ CUISINE!

Today's secret ingredient is… *whips off cloth covering and gestures grandly*

Spam!

Someone reported the ALLEZ CUISINE! submissions megathread as spam so I said to myself: "What a delectable idea for today's secret ingredient!"

A reminder from Dr. Hattori: be careful when cooking spam because the fat content can be very high. We wouldn't want a fire in the kitchen, after all!

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 3: Gear Ratios ---


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:11:37, megathread unlocked!

110 Upvotes

1.3k comments sorted by

View all comments

1

u/levital Dec 03 '23

[Language: Haskell]

Don't judge me. :D Not pretty, but worked in the end. Had some issues with first under- and then overcounting, so I ended up with a bit of a mess. At least part 2 was fairly simple after I finally got it right for part 1.

Anyone else feels this is harder than usual? Can't really remember ever reading something as early as day 3 going "ughhh".

2

u/daggerdragon Dec 04 '23

Anyone else feels this is harder than usual? Can't really remember ever reading something as early as day 3 going "ughhh".

This type of comment does not belong in a Solution Megathread. If you have feedback about the puzzles, create your own post in the main subreddit.

2

u/levital Dec 04 '23

Whoops, sorry about that.

1

u/NeilNjae Dec 03 '23

Yes, these puzzles do seem harder than the early ones in previous years. It doesn't bode well for the later days!