Advent of Code 2015 day 21 part 1&2: solved

This commit is contained in:
Fabian Tessmer 2025-04-11 12:36:06 +02:00
parent b886ea74f7
commit 5fb237b5a2
3 changed files with 33 additions and 0 deletions

33
2015/day21/input.txt Normal file
View File

@ -0,0 +1,33 @@
[Shop]
Weapons: Cost Damage Armor
Dagger 8 4 0
Shortsword 10 5 0
Warhammer 25 6 0
Longsword 40 7 0
Greataxe 74 8 0
Armor: Cost Damage Armor
Leather 13 0 1
Chainmail 31 0 2
Splintmail 53 0 3
Bandedmail 75 0 4
Platemail 102 0 5
Rings: Cost Damage Armor
Damage +1 25 1 0
Damage +2 50 2 0
Damage +3 100 3 0
Defense +1 20 0 1
Defense +2 40 0 2
Defense +3 80 0 3
[Boss]
Hit Points: 104
Damage: 8
Armor: 1
[Hero]
Hit Points: 100
Damage: x
Armor: y

0
2015/day21/problem.txt Normal file
View File

BIN
2015/day21/solution.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 903 KiB