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

4275번 - Point of view in Flatland 스페셜 저지다국어

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

문제

Everything is flat in Flatland. The planets are round but they are flat, that is, they are discs in a plane.

The centers of three planets in Flatland are given and their radii. Find the point in Flatland from which all three planets are visible at the same angle, that is, they appear to have the same size measured as angular diameter. Let's call such a point an isoobservation point. There can be at most two such points and we are interested in finding the one that gives the largest angular diameter of the planets.

To simplify the problem you may assume that:

  • The discs centers are not all collinear.
  • The discs are totally disjoint.
  • The discs are transparent and non-refractive. That is, a disc is visible and has the same apparent shape and size, whether or not there's another disc in front of it.
  • The input data are such that the existence or non-existence of such a point is computable, even with slight rounding error. But use double-precision, eh?

입력

Input consists of several cases, each case is presented at a single line. Each line has nine numbers, three for each disc. Each triple has x and y coordinates of the disc center and the radius r of that disc. The input is terminated by a line with nine zeros and this line should not be processed.

출력

For each case of input, print the x and y coordinates of the isoobservation point as described above in the format shown in the sample; but if there is no such point, print No solution

제한

예제 입력 1

10 10 1 30 30 1 50 10 1
0 30 1.0 30 0 1.0 40 40 1.0
10 30 1.0 31 0 1.0 42 43 1.0
10 42 1 62.8 62.8 1 52.5 -25.3 1
10 42 1.1 62.8 62.8 1.2 52.5 25.3 25
0 0 0 0 0 0 0 0 0

예제 출력 1

30.00 10.00
23.00 23.00
31.58 22.76
49.27 19.73
No solution

힌트

출처

Contest > Waterloo's local Programming Contests > 27 May, 2006 D번

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

출처

대학교 대회

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

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