Yet Another Point Searching Problem
시간 제한1초메모리 제한1024 MB
주어진 각 점까지의 가중 유클리드 거리의 최댓값이 최소가 되는 점 B를 찾는다.
문제
You are given points on the plane: . Point has weight . Find such point that the maximum weighted distance is minimal possible.
입력
The input consists of one or more test cases.
On the first line of each test case, there is an integer : the number of points (). Each of the next lines contains three integers: , and . Each of these numbers does not exceed by absolute value. All weights are strictly positive.
The test cases follow one another without any gaps. The input is terminated by a line containing a single integer . This line must not be considered a test case. The sum of all in the input does not exceed . There are no more than test cases in the input.
출력
For each test case, print two real numbers: the coordinates of point . Your answer will be considered correct if the absolute or relative error of the maximum weighted distance will be less than .