finish 2023

This commit is contained in:
2024-12-01 08:01:55 +00:00
parent 6753ed26ca
commit 2584df5496
13 changed files with 776 additions and 1 deletions

View File

@@ -20,6 +20,9 @@ import (
"adventofcode2023/day11"
"adventofcode2023/day12"
"adventofcode2023/day13"
"adventofcode2023/day14"
"adventofcode2023/day15"
"adventofcode2023/day16"
@@ -70,6 +73,15 @@ func main() {
case 13:
fmt.Printf("part 1: %d\n", day13.Part1(utils.Readfile(d)))
fmt.Printf("part 2: %d\n", day13.Part2(utils.Readfile(d)))
case 14:
fmt.Printf("part 1: %d\n", day14.Part1(utils.Readfile(d)))
fmt.Printf("part 2: %d\n", day14.Part2(utils.Readfile(d)))
case 15:
fmt.Printf("part 1: %d\n", day15.Part1(utils.Readfile(d)))
fmt.Printf("part 2: %d\n", day15.Part2(utils.Readfile(d)))
case 16:
fmt.Printf("part 1: %d\n", day16.Part1(utils.Readfile(d)))
fmt.Printf("part 2: %d\n", day16.Part2(utils.Readfile(d)))
default:
panic(fmt.Errorf("no such day: %d", d))
}
@@ -77,7 +89,7 @@ func main() {
// Reads day from os.Args.
func day() int {
latest := 12
latest := 15
if len(os.Args) == 1 {
return latest
}