logo AlgoBeat OnlineJudge
登录 注册

#214817. [ICPC 2023 Tehran R] Largest Triangle

内存限制:1024 MiB 时间限制:2000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

A "terrain" is an -monotone polygon defined by the points where each point has coordinates , and the following three conditions hold:

  • for
  • for

Given a terrain defined by the points , find the largest triangle that fits entirely within the terrain, and one of its three vertices is positioned at one of the terrain points through .

:::align{center} :::

输入格式

The first line of input contains an integer , representing the number of points in the terrain (). The line in the following lines consists of two space-separated integers and , representing the point of the terrain ().

输出格式

Print the area of the largest triangle contained within the terrain. Your output will be considered correct if its absolute or relative error is at most .

样例

样例输入 1

11
0 0
2 10
4 5
6 7
8 8
10 4
12 6
14 4
15 4
16 7
17 0

样例输出 1

53.666667