Yellow Blue Bus

아직 제출이 없습니다시간 제한6초메모리 제한512 MB

문제

You are given nn blue points and mm yellow points. You need to find a circle such that all blue points are located outside or on the boundary of this circle, and all yellow are located inside or on the boundary of this circle.

The tests for this problem were generated in such a way that, for each test case, there exists a circle with the following properties:

  • the radius is r109r \le 10^9,
  • the center is at a point (x,y)(x, y) where x109|x| \le 10^9 and y109|y| \le 10^9,
  • for each blue point PP, the distance from the center to PP is at least r+107max(1,r)r + 10^{-7} \cdot \max(1, r), and
  • for each yellow point QQ, the distance from the center to QQ is at most r107max(1,r)r - 10^{-7} \cdot \max(1, r).

To check when your answer will be considered correct, see output format.

입력

The first line contains tt, the number of test cases you need to solve (1t1051 \le t \le 10^5).

The first line of each test case contains an integer nn, the number of blue points (1n50,0001 \le n \le 50\\,000).

Each of the next nn lines contains two integers xx and yy: the coordinates of a blue point (109x,y109-10^9 \le x, y \le 10^9).

The next line contains an integer mm, the number of yellow points (1m50,0001 \le m \le 50\\,000).

Each of the next mm lines contains two integers xx and yy: the coordinates of a yellow point (109x,y109-10^9 \le x, y \le 10^9).

It is guaranteed that, in each test case, all points (blue and yellow) are pairwise distinct. Additionally, the sum of nn over all test cases does not exceed 50,00050\\,000, and  the sum of mm over all test cases does not exceed 50,00050\\,000.

출력

For each test case, output two lines.

On the first line, output a real number rr, the radius of your circle.

On the second line output two real numbers xx and yy, the coordinates of the center of your circle.

Your answer will be considered correct if:

  • 0r10100 \le r \le 10^{10},
  • x1010|x| \le 10^{10} and y1010|y| \le 10^{10},
  • for each blue point PP, the distance from center to PP is at least r107max(1,r)r - 10^{-7} \cdot \max(1, r), and
  • for each yellow point QQ, the distance from center to QQ is at most r+107max(1,r)r + 10^{-7} \cdot \max(1, r).