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