Codeforces 2C Commentator problem

English

Desc

The Olympic Games in Bercouver are in full swing now. Here everyone has their own objectives: sportsmen compete for medals, and sport commentators compete for more convenient positions to give a running commentary. Today the main sport events take place at three round stadiums, and the commentator’s objective is to choose the best point of observation, that is to say the point from where all the three stadiums can be observed. As all the sport competitions are of the same importance, the stadiums should be observed at the same angle. If the number of points meeting the conditions is more than one, the point with the maximum angle of observation is prefered.

Would you, please, help the famous Berland commentator G. Berniev to find the best point of observation. It should be noted, that the stadiums do not hide each other, the commentator can easily see one stadium through the other.

Input

The input data consists of three lines, each of them describes the position of one stadium. The lines have the format x,  y,  r, where (x, y) are the coordinates of the stadium’s center ( -  103 ≤ x,  y ≤ 103), and r (1 ≤ r  ≤ 103) is its radius. All the numbers in the input data are integer, stadiums do not have common points, and their centers are not on the same line.

Output

Print the coordinates of the required point with five digits after the decimal point. If there is no answer meeting the conditions, the program shouldn’t print anything. The output data should be left blank.

Examples

input
0 0 10
60 0 10
30 30 10
output
30.00000 0.00000

中文

简介

Bercouver的奥运正在全面展开。这里每个人都有自己的目标:运动员竞争奖牌,运动评论员竞争更方便的职位,以提供有效的评论。今天的主要体育赛事是在三轮体育馆举行,评论员的目标是选择最好的观察点,也就是说可以观察所有三个体育场的地方。由于所有的运动比赛都具有同样的重要性,所以体育场应该以同样的角度(即每天体育馆的之间到观察点的距离都一样)观察。如果满足条件的点数超过一个,则具有最大观察角度的点被优先考虑。
请你帮助着名的Berland评论员G. Berniev找到最好的观察点。应该指出的是,体育馆不会相互隐藏,评论员可以很容易地看到一个体育场。

输入格式

输入数据由三条线组成,每行描述一个球场的位置(x,y,r)。
每行具有格式x,  y,   r ,其中(x,  y)是体育场的中心的坐标( - 103  ≤  x, y ≤ & 103 ),和 r (1 ≤  r   ≤ 103 )是其半径。输入数据中的所有数字都是整数,体育馆没有共同点,他们的中心不在同一行。

输出格式

在小数点后面打印五位数所需点的坐标。如果没有答案满足条件,程序不应该打印任何东西。输出数据应留空。

测试用例

测试输入
0 0 10
60 0 10
30 30 10
测试输出
30.00000 0.00000
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值