#P6818. [PA 2013] Działka
[PA 2013] Działka
Problem Description
Given points on a plane and queries, for each query, find the area of the convex hull formed by the points inside (including the boundary) an axis-aligned rectangle.
Input Format
The first line contains two positive integers .
The next lines each contain two integers , representing the coordinates of the -th point.
Then a line contains one integer .
The next lines each contain four numbers , representing a query rectangle with bottom-left corner and top-right corner .
Output Format
For each query, output one line with the area. Keep one digit after the decimal point.
9 7
1 1
1 3
3 3
3 1
6 5
6 6
7 3
3
0 4 0 4
2 7 0 7
3 7 3 6
4.0
10.0
6.0
Hint
, , , , .
Translated by ChatGPT 5