2018-12-06 07:23:45 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2018-12-10 06:06:47 +00:00
|
|
|
"internal/day06"
|
2018-12-06 07:23:45 +00:00
|
|
|
"internal/util"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
data := util.ReadInput()
|
2018-12-10 06:06:47 +00:00
|
|
|
points := day06.ParsePoints(data)
|
2018-12-06 07:23:45 +00:00
|
|
|
|
2018-12-10 06:06:47 +00:00
|
|
|
day06.ComputeRectilinearAreas(points)
|
2018-12-06 07:23:45 +00:00
|
|
|
|
|
|
|
biggest := points[0]
|
|
|
|
for _, point := range points {
|
|
|
|
if point.RectArea > biggest.RectArea {
|
|
|
|
biggest = point
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fmt.Println(biggest.RectArea)
|
|
|
|
}
|