Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

Neko and quadrilateral

Time Limit: 10000/7000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 47    Accepted Submission(s): 2


Problem Description
Neko have k points on a 2-dimensional plane. And no three points are in a straight line.
Now, Neko want to you to select four different points to form a quadrilateral. Neko want to know the max area and the min area fo this quadrilateral.
 

Input
The first line contains one integers $n(1 \leq n \leq 2000)$
The next $n$ line, each line contains two integers $x, y(-10^{9} \leq x,y \leq 10^{9})$, means the coordinate of the $i-th$ point.
 

Output
Output the min area and the max area in one line. For convenience, please output twice the area.
 

Sample Input
6 1 1 2 2 1 3 4 1 0 -2 3 5
 

Sample Output
3 27
 

Statistic | Submit | Clarifications | Back