Implement 2024 day 13

This commit is contained in:
2024-12-13 08:36:20 +01:00
parent 044c971d00
commit c8ab67d145
3 changed files with 65 additions and 0 deletions

15
2024/tests/samples/13.txt Normal file
View File

@@ -0,0 +1,15 @@
Button A: X+94, Y+34
Button B: X+22, Y+67
Prize: X=8400, Y=5400
Button A: X+26, Y+66
Button B: X+67, Y+21
Prize: X=12748, Y=12176
Button A: X+17, Y+86
Button B: X+84, Y+37
Prize: X=7870, Y=6450
Button A: X+69, Y+23
Button B: X+27, Y+71
Prize: X=18641, Y=10279

7
2024/tests/test_day13.py Normal file
View File

@@ -0,0 +1,7 @@
from aoc.days.day13 import DayRunner
from . import get_data
def test_sample_part1() -> None:
assert DayRunner.part1(get_data(13)) == 480