A7730 | Commentator problem
时间限制1s
内存限制256MB
通过 / 提交0/0
题目描述
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.
给定三个圆,找到一个点,使得到三个圆的两切线张角相同,取最大张角的那个点输出,没有则不输出。
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.
给定三个圆,找到一个点,使得到三个圆的两切线张角相同,取最大张角的那个点输出,没有则不输出。
输入格式
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 ( $-10^{3}<=x,y<=10^{3}$ ), and $r$ ( $1<=r<=10^{3}$ ) 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.
输出格式
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.
输入输出样例
输入 #1
0 0 10 60 0 10 30 30 10
输出 #1
30.00000 0.00000
暂无题解
C++ 编辑器
输入
输出
可保存默认模板;新题优先使用已保存模板。
当前快捷键仅展示,暂不支持修改。
- 撤销
Ctrl / ⌘ + Z - 重做
Ctrl / ⌘ + Y - 查找
Ctrl / ⌘ + F - 全选
Ctrl / ⌘ + A - 复制
Ctrl / ⌘ + C - 剪切
Ctrl / ⌘ + X - 粘贴
Ctrl / ⌘ + V - 自动排版
工具栏排版按钮 - 草稿保存
编辑时自动保存到本机
历史
提交记录
状态说明时间源码
AI
作答助手
你好,我是作答助手。可以问思路、复杂度、样例含义或代码报错原因;不会直接给出完整 AC 代码。
确定要清空代码吗?