This problem contains multiple test cases.
The first line contains an integer![]()
— the number of test cases.
For each test case:
The first line contains an integer![]()
— the number of the initial points.
Thenlines follow. The
-th of them contains two integers
— the coordinate of the
-th initial point.
The next line contains an integer![]()
— the number of queries.
Thenqueries follow. For each query: the first line contains an integer
— the number of points in this query; then
lines follow, the
-th of which contains two integers
— the coordinate of the
-th point in this query.
It is guaranteed that in all test cases, the sum of N is no more than, and the sum of
is no more than
.
For each query in each test case, output
in one line.
indicates the area in this query.
It can be proved thatis always an integer.