18 lines
244 B
Go
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)
|
|
}
|