aoc2023/day-7/solution.go

28 lines
347 B
Go
Raw Normal View History

2023-12-07 23:13:05 +00:00
package main
import (
"fmt"
log "github.com/sirupsen/logrus"
)
func init() {
log.SetLevel(log.InfoLevel)
}
func main() {
lines := readlines()
ans, err := one(lines)
if err != nil {
log.Fatal()
}
fmt.Printf("solution one: %d\n", ans)
ans, err = two(lines)
if err != nil {
log.Fatal()
}
fmt.Printf("solution two: %d\n", ans)
}