301799: CF340B. Maximal Area Quadrilateral
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
Maximal Area Quadrilateral
题意翻译
###### 题意简述 给定n个点,要求从这些点里面寻找4个点,使得这四个点组成的四边形的面积最大。保证不出现三点共线或点重合的情况 。 感谢 @ REDDEVILS 提供的翻译题目描述
Iahub has drawn a set of $ n $ points in the cartesian plane which he calls "special points". A quadrilateral is a simple polygon without self-intersections with four sides (also called edges) and four vertices (also called corners). Please note that a quadrilateral doesn't have to be convex. A special quadrilateral is one which has all four vertices in the set of special points. Given the set of special points, please calculate the maximal area of a special quadrilateral.输入输出格式
输入格式
The first line contains integer $ n $ ( $ 4<=n<=300 $ ). Each of the next $ n $ lines contains two integers: $ x_{i} $ , $ y_{i} $ $ (-1000<=x_{i},y_{i}<=1000) $ — the cartesian coordinates of $ i $ th special point. It is guaranteed that no three points are on the same line. It is guaranteed that no two points coincide.
输出格式
Output a single real number — the maximal area of a special quadrilateral. The answer will be considered correct if its absolute or relative error does't exceed $ 10^{-9} $ .
输入输出样例
输入样例 #1
5
0 0
0 4
4 0
4 4
2 3
输出样例 #1
16.000000