Stop Making Sense
Time limit1sMemory limit256 MB
For each input point in turn, remove it and report the area of the smallest convex polygon enclosing the rest.
- Level
Hard8 of 10
- Topics
- Geometry, Sorting, Binary search
- Solved
- No attempts yet
Problem
You are given points in the plane. No three of them lie on one line, so no two points share the same coordinates.
Take one point away at a time. Among all convex polygons that contain the remaining points, consider the one of smallest area. Find that smallest area for every point.
Input
The first line contains an integer . ()
Each of the next lines contains the integer coordinates and of one point. ()
Output
Print lines. On line , print the smallest area obtained when the -th point of the input is taken away, with exactly three digits after the decimal point. Every answer is a multiple of because all coordinates are integers.