#P4166. [SCOI2007] 最大土地面积

    ID: 3100 远端评测题 1000ms 128MiB 尝试: 0 已通过: 0 难度: 8 上传者: 标签>2007四川各省省选枚举,暴力向量凸包叉积

[SCOI2007] 最大土地面积

Description

On a piece of planar land, there are NN points. You may choose any four of them to enclose the land. Of course, you want the polygon formed by these four points to have the maximum area.

Input Format

The first line contains a positive integer NN. The next NN lines each contain 22 numbers x,yx, y, representing the xx-coordinate and yy-coordinate of the point.

Output Format

Output the maximum polygon area, rounded to 33 decimal places.

5
0 0
1 0
1 1
0 1
0.5 0.5
1.000

Hint

5N2000,0x,y1000005\le N\le 2000, 0\le |x|,|y|\le 100000.

Translated by ChatGPT 5