mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2024-11-15 15:10:49 +00:00
23 lines
279 B
Go
23 lines
279 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"log"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
lines := readlines()
|
||
|
|
||
|
ans, err := one(lines)
|
||
|
if err != nil {
|
||
|
log.Fatal(err)
|
||
|
}
|
||
|
fmt.Printf("solution one: %d\n", ans)
|
||
|
|
||
|
ans, err = two(lines)
|
||
|
if err != nil {
|
||
|
log.Fatal(err)
|
||
|
}
|
||
|
fmt.Printf("solution two: %d\n", ans)
|
||
|
}
|