Solution for 11.1

This commit is contained in:
Anna Rose Wiggins 2018-12-12 16:14:57 -05:00
parent bd7cc5ce68
commit a409571bd8
No known key found for this signature in database
GPG key ID: 8D9ACA841015C59A
3 changed files with 104 additions and 0 deletions

17
2018/day11-1.go Normal file
View file

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