This commit is contained in:
2025-02-14 15:14:03 +00:00
parent a529516bab
commit 759b9c9544
23 changed files with 11146 additions and 6 deletions

View File

@@ -26,6 +26,11 @@ import (
"adventofcode2024/day17"
"adventofcode2024/day18"
"adventofcode2024/day19"
"adventofcode2024/day21"
"adventofcode2024/day22"
"adventofcode2024/day23"
"adventofcode2024/day24"
"adventofcode2024/day25"
"adventofcode2024/utils"
)
@@ -90,6 +95,21 @@ func main() {
case 19:
fmt.Printf("part 1: %d\n", day19.Part1(utils.Readfile(d)))
fmt.Printf("part 2: %d\n", day19.Part2(utils.Readfile(d)))
case 21:
fmt.Printf("part 1: %d\n", day21.Part1(utils.Readfile(d)))
fmt.Printf("part 2: %d\n", day21.Part2(utils.Readfile(d)))
case 22:
fmt.Printf("part 1: %d\n", day22.Part1(utils.Readfile(d)))
fmt.Printf("part 2: %d\n", day22.Part2(utils.Readfile(d)))
case 23:
fmt.Printf("part 1: %d\n", day23.Part1(utils.Readfile(d)))
fmt.Printf("part 2: %d\n", day23.Part2(utils.Readfile(d)))
case 24:
fmt.Printf("part 1: %d\n", day24.Part1(utils.Readfile(d)))
fmt.Printf("part 2: %d\n", day24.Part2(utils.Readfile(d)))
case 25:
fmt.Printf("part 1: %d\n", day25.Part1(utils.Readfile(d)))
fmt.Printf("part 2: %d\n", day25.Part2(utils.Readfile(d)))
default:
panic(fmt.Errorf("no such day: %d", d))
}
@@ -99,7 +119,7 @@ func main() {
// Reads day from os.Args.
func day() int {
latest := 19
latest := 24
if len(os.Args) == 1 {
return latest
}