Cut The Plane

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

문제

There are nn distinct points in the plane, any three of which are not colinear.

You are asked to use n2\lceil \frac{n}{2} \rceil distinct lines passing through no given points to cut the plane into pieces such that no two points lie in the same piece.

입력

There are multiple test cases. The first line of the input contains an integer TT, indicating the number of test cases. For each test case:

The first line contains an integer nn (1n1001\le n\le 100) -- the number of points.

Each of the following nn lines contains two integers xx and yy (1000x,y1000-1000\le x,y \le 1000) describing a point in the plane.

It is guaranteed that there always exists a solution for each test case and the sum of nn in all test cases does not exceed 10510^5.

출력

For each test case, output n2\lceil \frac{n}{2} \rceil lines describing a solution.

Each line of them contains four integers x_1x\_1, y_1y\_1, x_2x\_2 and y_2y\_2 indicating a line through (x_1,y_1)(x\_1,y\_1) and (x_2,y_2)(x\_2,y\_2), where (x_1,y_1)(x_2,y_2)(x\_1,y\_1) \neq (x\_2,y\_2) and the absolute value of the coordinates should not exceed 10910^9.