day9,10,11
This commit is contained in:
@@ -15,6 +15,12 @@ import (
|
||||
"adventofcode2023/day06"
|
||||
"adventofcode2023/day07"
|
||||
"adventofcode2023/day08"
|
||||
"adventofcode2023/day09"
|
||||
"adventofcode2023/day10"
|
||||
"adventofcode2023/day11"
|
||||
|
||||
|
||||
|
||||
)
|
||||
// Usage: go run main.go <NN>
|
||||
// assumes input is in day<NN>/input.txt
|
||||
@@ -47,6 +53,15 @@ func main() {
|
||||
case 8:
|
||||
fmt.Printf("part 1: %d\n", day08.Part1(utils.Readfile(d)))
|
||||
fmt.Printf("part 2: %d\n", day08.Part2(utils.Readfile(d)))
|
||||
case 9:
|
||||
fmt.Printf("part 1: %d\n", day09.Part1(utils.Readfile(d)))
|
||||
fmt.Printf("part 2: %d\n", day09.Part2(utils.Readfile(d)))
|
||||
case 10:
|
||||
fmt.Printf("part 1: %d\n", day10.Part1(utils.Readfile(d)))
|
||||
fmt.Printf("part 2: %d\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))
|
||||
}
|
||||
@@ -54,7 +69,7 @@ func main() {
|
||||
|
||||
// Reads day from os.Args.
|
||||
func day() int {
|
||||
latest := 7
|
||||
latest := 10
|
||||
if len(os.Args) == 1 {
|
||||
return latest
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user