Pro.ID21152 TitlePoint of view in Flatland Title链接http://10.20.2.8/oj/exercise/problem?problem_id=21152 AC5 Submit187 Ratio2.67% 时间&空间限制描述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. 输入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. 输出Description 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. Input 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. Output 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 To simplify the problem you may assume that:
Sample Input 10 10 1 30 30 1 50 10 1 Sample Output 30.00 10.00 Source 样例输入10 10 1 30 30 1 50 10 1 样例输出30.00 10.00 作者 |