Fortress Construction
Time limit7sMemory limit256 MB
Choose up to four of the given points as corners of a convex polygon with maximum area.
- Level
Medium6 of 10
- Topics
- Geometry, Brute force
- Solved
- No attempts yet
Problem
At most four watchtowers may be placed on given candidate points. Find the maximum area of a convex base whose corners are chosen from those points.
Input
The first line contains . Each test gives distinct points.
Output
Print the maximum base area. Use one decimal place only when the area is half-integer.