Kreso has bought some delicious cheese with peppers, but Stjepan doesn’t really like peppers so he’s trying to cut a piece that doesn’t contain any peppers.
Kreso’s cheese has the shape of a convex polygon, and each pepper is one point on the inside of the polygon. Stjepan cuts the cheese exactly once in such a way that he chooses two vertices of the polygon that are not adjacent and cuts along the line segment connecting them. Stjepan then takes the freshly cut part without any peppers (on the inside nor on the edges).
All peppers are located in different coordinates in the inside of the polygon (they will not be located on the edge or outside of the polygon).
If it isn’t possible to cut a piece of cheese without peppers in one move, output 0.
입력 5 0 1 3 0 4 2 2 3 0 3 3 2 1 3 1 3 2 출력 4 입력 6 -3 3 -3 -4 -2 -5 2 -5 3 -4 3 3 7 1 0 0 -1 0 -3 2 0 0 0 0 2 -1 0 출력 10 입력 6 0 3 -1 2 -1 -2 0 -3 1 -2 1 2 1 0 0 출력 4 Clarification of the second example: Stjepan cuts from vertex 2 to vertex 5. Clarification of the third example: Stjepan cuts from vertex 1 to vertex 3.
출처:2013-2014 olympiad 4/4