r/adventofcode • • Dec 06 '23

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

THE USUAL REMINDERS


AoC Community Fun 2023: ALLEZ CUISINE!

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

Obsolete Technology

Sometimes a chef must return to their culinary roots in order to appreciate how far they have come!

  • Solve today's puzzles using an abacus, paper + pen, or other such non-digital methods and show us a picture or video of the results
  • Use the oldest computer/electronic device you have in the house to solve the puzzle
  • Use an OG programming language such as FORTRAN, COBOL, APL, or even punchcards

    • We recommend only the oldest vintages of codebases such as those developed before 1970
  • Use a very old version of your programming language/standard library/etc.

    • Upping the Ante challenge: use deprecated features whenever possible

Endeavor to wow us with a blast from the past!

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 6: Wait For It ---


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:05:02, megathread unlocked!

46 Upvotes

1.2k comments sorted by

View all comments

2

u/Rodbourn Dec 06 '23 edited Dec 06 '23

[LANGUAGE: c#]

You could do it on paper just as well. I think it's a nice reminder that not everything is data science and algorithms, sometimes it just writing up a formula after you derive it.

I got excited at first thinking there might be some Diophantine equations :)

https://github.com/Rodbourn/adventofcode/blob/main/Day006.cs

2

u/daggerdragon Dec 06 '23

Your code block is too long for the megathreads. Please edit your post to replace your oversized code with an external link to your code. edit: 👍

1

u/Rodbourn Dec 06 '23

done - too much boilerplate anyway - ty

2

u/Annual-Management613 Dec 06 '23

Diophantine equations

That's what I was looking for, I knew that should be a formula to solve the problem!!!

How do you know about this formula and that works for this problem?

Thanks so much.