|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|2 초||512 MB||17||9||2||50.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:
For each test case:
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
2 0 7