day 12,13
This commit is contained in:
@@ -18,6 +18,8 @@ import (
|
||||
"adventofcode2023/day09"
|
||||
"adventofcode2023/day10"
|
||||
"adventofcode2023/day11"
|
||||
"adventofcode2023/day12"
|
||||
"adventofcode2023/day13"
|
||||
|
||||
|
||||
|
||||
@@ -62,6 +64,12 @@ func main() {
|
||||
case 11:
|
||||
fmt.Printf("part 1: %d\n", day11.Part1(utils.Readfile(d)))
|
||||
fmt.Printf("part 2: %d\n", day11.Part2(utils.Readfile(d)))
|
||||
case 12:
|
||||
fmt.Printf("part 1: %d\n", day12.Part1(utils.Readfile(d)))
|
||||
fmt.Printf("part 2: %d\n", day12.Part2(utils.Readfile(d)))
|
||||
case 13:
|
||||
fmt.Printf("part 1: %d\n", day13.Part1(utils.Readfile(d)))
|
||||
fmt.Printf("part 2: %d\n", day13.Part2(utils.Readfile(d)))
|
||||
default:
|
||||
panic(fmt.Errorf("no such day: %d", d))
|
||||
}
|
||||
@@ -69,7 +77,7 @@ func main() {
|
||||
|
||||
// Reads day from os.Args.
|
||||
func day() int {
|
||||
latest := 10
|
||||
latest := 12
|
||||
if len(os.Args) == 1 {
|
||||
return latest
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user