Logo
(追記) (追記ここまで)

31330번 - Yet Another Point Searching Problem 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB5000.000%

문제

You are given $n$ points on the plane: $A_1, A_2, \cdots, A_n$. Point $i$ has weight $w_i$. Find such point $B$ that the maximum weighted distance $\max\limits_{i=1}^{n}{w_i \cdot |A_{i}B|}$ is minimal possible.

입력

The input consists of one or more test cases.

On the first line of each test case, there is an integer $n$: the number of points (1ドル \le n \le 500,000円$). Each of the next $n$ lines contains three integers: $x_i,ドル $y_i$ and $w_i$. Each of these numbers does not exceed 10ドル^7$ 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 0ドル$. This line must not be considered a test case. The sum of all $n$ in the input does not exceed 500ドル,000円$. There are no more than 1000ドル$ test cases in the input.

출력

For each test case, print two real numbers: the coordinates of point $B$. Your answer will be considered correct if the absolute or relative error of the maximum weighted distance will be less than 10ドル^{-9}$.

제한

예제 입력 1

2
2 2 1
0 0 1
3
0 0 1
6 0 2
0 6 3
0

예제 출력 1

1.0 1.0
2.4 3.6

힌트

출처

Contest > Open Cup > 2014/2015 Season > Stage 5: Grand Prix of Peterhof F번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /