day11
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user