Problem L
Trimming Convex Polygons
You are the proud owner of a beautiful convex polygon! But university is expensive, so you decide to sell your polygon to support your studies. The market value, in dollars, for a polygon is exactly twice its area. But there is an illegal black market for individual vertices.
In this problem, you are given a convex polygon with
vertices
![\includegraphics[width=0.7\textwidth ]{trimming}](/problems/trimmingpolygons/file/statement/en/img-0001.png)
You are guaranteed no three vertices of
Input
The first line of input consists of a single integer
Then
The points are given in counterclockwise order around
Output
A single line with a single integer indicating the maximum
amount of money that can be obtained by selling a subset of
Sample Input 1 | Sample Output 1 |
---|---|
4 0 0 1 4 0 3 6 6 100 0 5 4 |
120 |
Sample Input 2 | Sample Output 2 |
---|---|
3 0 0 5 1 0 6 0 1 7 |
18 |