adventofcode/2018/day06-1.go
2018-12-06 02:23:45 -05:00

24 lines
342 B
Go

package main
import (
"fmt"
"internal/coords"
"internal/util"
)
func main() {
data := util.ReadInput()
points := coords.ParsePoints(data)
coords.ComputeRectilinearAreas(points)
biggest := points[0]
for _, point := range points {
if point.RectArea > biggest.RectArea {
biggest = point
}
}
fmt.Println(biggest.RectArea)
}