adventofcode/2018/day06-1.go

24 lines
342 B
Go
Raw Normal View History

2018-12-06 07:23:45 +00:00
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)
}