day2
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
// "time"
|
||||
"adventofcode2024/utils"
|
||||
"adventofcode2024/day01"
|
||||
"adventofcode2024/day02"
|
||||
)
|
||||
// Usage: go run main.go <NN>
|
||||
// assumes input is in day<NN>/input.txt
|
||||
@@ -19,6 +20,9 @@ func main() {
|
||||
case 1:
|
||||
fmt.Printf("part 1: %d\n", day01.Part1(utils.Readfile(d)))
|
||||
fmt.Printf("part 2: %d\n", day01.Part2(utils.Readfile(d)))
|
||||
case 2:
|
||||
fmt.Printf("part 1: %d\n", day02.Part1(utils.Readfile(d)))
|
||||
fmt.Printf("part 2: %d\n", day02.Part2(utils.Readfile(d)))
|
||||
default:
|
||||
panic(fmt.Errorf("no such day: %d", d))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user