Skip to content

Commit b5e2acb

Browse files
committed
2024: Add solution for Day 13
1 parent 27db8f7 commit b5e2acb

File tree

7 files changed

+1395
-17
lines changed

7 files changed

+1395
-17
lines changed

β€Ž2024/Cargo.lockβ€Ž

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ž2024/README.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cargo run --bin day01
2222
10. [Hoof It](day10) 🌟🌟
2323
11. [Plutonian Pebbles](day11) 🌟🌟
2424
12. [Garden Groups](day12) 🌟🌟
25-
13. [](day13)
25+
13. [Claw Contraption](day13) 🌟🌟
2626
14. [](day14)
2727
15. [](day15)
2828
16. [](day16)

β€Ž2024/day13/Cargo.tomlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9+
lib = { path = "../lib" }

β€Ž2024/day13/example1.txtβ€Ž

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Button A: X+94, Y+34
2+
Button B: X+22, Y+67
3+
Prize: X=8400, Y=5400
4+
5+
Button A: X+26, Y+66
6+
Button B: X+67, Y+21
7+
Prize: X=12748, Y=12176
8+
9+
Button A: X+17, Y+86
10+
Button B: X+84, Y+37
11+
Prize: X=7870, Y=6450
12+
13+
Button A: X+69, Y+23
14+
Button B: X+27, Y+71
15+
Prize: X=18641, Y=10279

0 commit comments

Comments
Β (0)