Problems
A meteor shower is about to happen! As the enthusiastic astronomy photographer that you are, you want to take a single picture of all the meteors that will be part of the phenomenon. Not only that, you want to take the best possible picture. You know that the smaller the area of the photo, the better the picture. But how small can you make the picture to capture them all?
You can take a picture of any rectangular region of your camera’s view, but you cannot rotate the camera. That is, your photo can be any axis-aligned rectangle. The challenge? The meteors are constantly moving. Think of time (
Input
The first line contains an integer
Each of the next
Output
Output a single line with the minimum area of an axis-aligned rectangle containing all the meteors at a time
Example #1
4
0 0 10 10
0 0 10 10
10 10 -10 -10
10 0 -20 0
22.2222222222222
Example #2
3
0 -1 0 2
1 1 1 1
-1 1 -1 1
0
Example #3
3
0 -1 0 -2
1 1 1 1
-1 1 -1 1
4
Example #4
1
0 0 0 0
0