시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB5321936.000%

## 문제

After a failed parachute drop lieutenant Jones finds himself in a precarious situation. Instead of landing at the target coordinates, he and his platoon are trapped in the middle of an enemy minefield!

Fortunately, as a special-ops soldier, lieutenant Jones has come prepared for all situations. Among other things, he carries an accurate map that shows the locations of all the mines in the area. Intelligence briefings further suggest that the type of anti-personnel mine used by the enemy has a blast- and detection-radius of 2 meters; if you get any closer, you die.

For the moment Jones’ platoon is safe, hiding beneath a bush. To keep things simple they plan to make a run for it while staying in a circular formation1, starting centered at the bush. In this formation each soldier needs an area of 1 square meter on average. For the sake of morale the entire formation should stay outside the blast-radius of any mines.

Of course, lieutenant Jones wants to escape with as many soldiers as possible. But in order to ensure that no one steps on a mine he may have to leave some men behind to be captured by the enemy.

1In a circular formation the distance of each soldier to the circle’s center is less than the circle’s radius. The total area of the circle should be enough to accommodate all soldiers.

## 입력

On the first line of the input is a positive integer, the number of test cases. Then for each test case:

• A line with a single positive integer n < 105, the number of mines in the minefield.
• n lines, each containing two integers, the x and y coordinates (in meters) of each mine relative to Jones’ current location. |x|, |y| < 105. No two mines have the exact same coordinates.

## 출력

For each test case:

• One line containing a single integer, the maximum number of soldiers that can escape.

## 예제 입력 1

3
3
2 2
2 -2
-2 -2
8
4 2
4 -1
1 4
-2 4
-4 2
-4 -2
-1 -4
2 -4
7
-10 -1
-4 3
-4 -4
-1 -6
2 4
3 -4
7 0


## 예제 출력 1

2
0
7