Given 2D-points $A _ k=(x _ k, y _ k)$ $(k=0,1,\ldots ,N-1)$ and 2D-points $B _ k=(p _ k, q _ k)$ $(k=0,1,\ldots ,M-1)$ . Process the following $Q$ queries in order.
$N$
$x _ 0$ $y _ 0$
$x _ 1$ $y _ 1$
$\ \vdots$
$x _ {N-1}$ $y _ {N-1}$
$M$
$p _ 0$ $q _ 0$
$p _ 1$ $q _ 1$
$\ \vdots$
$p _ {M-1}$ $q_{M-1}$
$Q$
$a$ $b$ $c$
$\ \vdots$
$a$ $b$ $c$
For each query, output the answer.
5 -1 -1 -1 2 2 -1 2 2 5 5 5 0 0 0 1 1 0 1 1 1 1 4 0 1 2 3 3 3 0 3 4 1 4 2
1 0 0 2
Library Checker 改
No. | Testdata Range | Score |
---|