Advent of Code 2024 Day 13 (BaseA Style)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Discussion thread for day 13 of the Advent of Code - https://adventofcode.com/2024/day/13
- Labels:
- Advent of Code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nice! Lucked out with another easy problem. Having a mathematics background was very helpful.
Thus, the solution to this problem is to identify all integer solutions to the provided systems of linear equations. If one exists, then that is the only solution, and thus, by extension, the minimum solution as well. Perform the strange cost calculation (which tripped me up initially; reading is still important apparently). Sum up all the costs and solve the problem. Thankfully, part 2 still fits an int64, so no challenge there at all!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
DO THE MATH!😁
Using a pencil and paper is not violation to Base-A, I believe.
Part2: Gave up the approach in part1. After 5 minutes, I realized this is just a simple algebra that has restriction of 'answer is integer'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Came here all excited to write about Math but @CoG beat me to it.
I will accept the consolation prize of a substantial amount of bonus sleep.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Solved!
Make Column tool is useful for dataprep.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I was stuck on this for 40 minutes until the solution finally hit me. Once I figured out the way to solve it, it only took a few minutes. Really fun problem though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This one was fun!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I took the easy way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I used the system of equations formula:
For Ax+By=C Dx+Ey=F then x=(BF-EC) / (BD - EA), y=(FA-CD) / (AE - BD)
