Maximum Polygon

3

4 votes
Geometry, Ternary search, Hard, Algorithms, Searching algorithm, Convex Hull
Problem

Given  points on plane, the  points forms a convex polygon. You need to find  points among them, then we calculate the convex hull of the  points.

You need to maximize .

Input Format

First line contains two integers .

Each of the next  lines contains two integers , represent a point.

It's guaranteed no two points coincide.

Output Format

One float number, represent the answer, round to 4 decimal digits. It's guaranteed the output will not change if we add  to the answer or subtract  from the answer.

Note : The statement for this problem has been updated. We are rejudging all submissions, please check announcement on contest page for detailed issue. 

Sample Input
6 4
1 0
2 1
2 2
1 3
0 1
0 2
Sample Output
0.4109
Time Limit: 5
Memory Limit: 256
Source Limit:
Explanation

The sample is in the above graph. .

Editor Image

?