Night is ending. You have just got points in 2D-coordinate plane in your dream. Wait! Things were going well with the points. Suddenly, a circle appeared, which is centered at coordinate and has a radius of . Your mind is telling you to create a convex polygon, whose vertices are subset of those points. This convex polygon must enclose the circle completely. That is, no point of the circle (including the points on its boundary) is strictly outside the polygon. The polygon may touch the circle.
This is not enough. You have to find the polygon with smallest area. Output the value of the smallest area. If it is impossible to construct such a polygon, output should be .
Let’s just solve this problem before the night ends.
First line of the input will have an integer , denoting the number of testcases. Each testcase is independent.
First line of each testcase will have an integer , denoting the number of points you have got.
Line of the next lines will have two integers and denoting the abscissa and ordinate -th point respectively, for .
Last line of each testcase will have an integer , denoting the radius of the circle.
Sum of over all testcases will not exceed .
Print a separate line for each testcase. Line of the output should have the output for -th testcase. Output of the -th testcase is the value of , where is the area of the smallest possible convex polygon. If there is no possible convex polygon, output is .
Input | Output |
---|---|
2 6 -6 0 -4 4 0 6 0 -6 2 2 6 0 4 1 5 5 1 | 144 -1 |
Following figures show the input of 1st testcase and the convex polygon with smallest area. Here the area is . |