atcoder#ABC250F. [ABC250F] One Fourth
[ABC250F] One Fourth
Score : points
Problem Statement
ABC 250 is a commemorable quarter milestone for Takahashi, who aims to hold ABC 1000, so he is going to celebrate this contest by eating as close to of a pizza he bought as possible.
The pizza that Takahashi bought has a planar shape of convex -gon. When the pizza is placed on an -plane, the -th vertex has coordinates .
Takahashi has decided to cut and eat the pizza as follows.
- First, Takahashi chooses two non-adjacent vertices from the vertices of the pizza and makes a cut with a knife along the line passing through those two points, dividing the pizza into two pieces.
- Then, he chooses one of the pieces at his choice and eats it.
Let be the quarter () of the area of the pizza that Takahashi bought, and be the area of the piece of pizza that Takahashi eats. Find the minimum possible value of . We can prove that this value is always an integer.
Constraints
- All values in input are integers.
- The given points are the vertices of a convex -gon in the counterclockwise order.
Input
Input is given from Standard Input in the following format:
Output
Print the answer as an integer.
5
3 0
2 3
-1 3
-3 1
-1 -1
1
Suppose that he makes a cut along the line passing through the -rd and the -th vertex and eats the piece containing the -th vertex. Then, , , and , which is minimum possible.
4
400000000 400000000
-400000000 400000000
-400000000 -400000000
400000000 -400000000
1280000000000000000
6
-816 222
-801 -757
-165 -411
733 131
835 711
-374 979
157889