adventofcode/2018/day11-2.go
2018-12-12 16:46:57 -05:00

18 lines
244 B
Go

package main
import (
"fmt"
"internal/day11"
"internal/util"
)
func main() {
serialNumber := util.ReadInputInts()[0]
grid := day11.GenerateGrid(serialNumber)
x, y, n := day11.FindBestWindow(grid)
fmt.Printf("%d,%d,%d\n", x, y, n)
}