This commit is contained in:
2023-11-27 14:38:53 +00:00
parent f133e157a1
commit 8d5196a10f
4 changed files with 254 additions and 1 deletions

View File

@@ -18,6 +18,8 @@ import (
"adventofcode2022/day08"
"adventofcode2022/day09"
"adventofcode2022/day10"
"adventofcode2022/day11"
)
@@ -58,6 +60,9 @@ func main() {
case 10:
fmt.Printf("part 1: %d\n", day10.Part1(utils.Readfile(d)))
fmt.Printf("part 2: %s\n", day10.Part2(utils.Readfile(d)))
case 11:
fmt.Printf("part 1: %d\n", day11.Part1(utils.Readfile(d)))
fmt.Printf("part 2: %d\n", day11.Part2(utils.Readfile(d)))
default:
panic(fmt.Errorf("no such day: %d", d))
}
@@ -65,7 +70,7 @@ func main() {
// Reads day from os.Args.
func day() int {
latest := 9
latest := 10
if len(os.Args) == 1 {
return latest
}