aoc2023/day-5/solution.go

25 lines
311 B
Go
Raw Normal View History

2023-12-06 04:01:17 +00:00
package main
import (
"fmt"
log "github.com/sirupsen/logrus"
)
func init() {
2024-01-01 11:32:43 +00:00
log.SetLevel(log.InfoLevel)
2023-12-06 04:01:17 +00:00
}
func main() {
lines := readlines()
ans, err := one(lines)
if err != nil {
log.Fatal(err)
}
fmt.Printf("solution one: %d\n", ans)
2024-01-01 11:32:43 +00:00
ans = two(lines)
2023-12-06 04:01:17 +00:00
fmt.Printf("solution two: %d\n", ans)
}