#P11023. [COTS 2020] 王国 Kraljevstvo
[COTS 2020] 王国 Kraljevstvo
Background
Translated from Izborne Pripreme 2020 (Croatian IOI/CEOI Team Selection) D1T1。。
Problem Description
You are given points on a 2D plane. Choose points to maximize the area of the convex hull of these points.
In addition, you must choose the two points with the minimum and maximum coordinates on the plane. It is guaranteed that there are no other points on the two lines parallel to the axis that pass through these two points, and the coordinates of these two points are .
You only need to output the maximum area.
Input Format
The first line contains two positive integers .
The next lines each contain two integers , describing a point.
Output Format
Output one real number on a single line, representing the maximum convex hull area.
The output should not contain extra leading zeros or trailing zeros.
6 4
0 0
9 0
2 8
6 5
2 -7
8 -7
67.5
5 3
0 0
10 0
5 0
5 5
5 -5
25
8 5
0 0
15 0
2 -2
4 12
10 -14
6 -12
2 -10
13 10
238
Hint
- Explanation for Sample : choose .
- Explanation for Sample : choose .
You may also refer to the figure below.

Constraints
For of the testdata, it is guaranteed that:
- ;
- ;
- All given points are distinct;
- The points with the minimum and maximum coordinates are unique, and their corresponding coordinates are 。
| Subtask ID | Score | |
|---|---|---|
Translated by ChatGPT 5