ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

翻译练习 Day6

2022-01-22 23:00:46  阅读:213  来源: 互联网

标签:翻译 point Day6 练习 should stadiums 体育场 103 commentator


题目:Commentator problem | JXNUOJ

翻译:

Commentator problem

1000ms 65536K

描述:

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.

在伯库弗举行的奥运会正火热地进行着。在这里,每个人都有自己的目标:运动员为奖牌而竞争,体育评论员为更方便的位置进行连续评论而竞争。今天,主要的体育赛事在三个圆形体育场举行,解说员的目标是选择最好的观察点,也就是说,从那里可以观察到所有的三个体育场。由于所有的体育比赛都具有同等的重要性,所以体育场的观景角度应该是相同的。当满足条件的点数大于1时,优先选择观测角度最大的点。

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.

请你帮助著名的伯兰评论员G. Berniev找到一个最佳的观察点。需要指出的是,两个场馆之间并不相互隐藏,解说员可以很容易地通过场馆看到另一个。

输入:

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.

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

输出:

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.

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

样例输入:

0 0 10
60 0 10
30 30 10

样例输出:

30.00000 0.00000

标签:翻译,point,Day6,练习,should,stadiums,体育场,103,commentator
来源: https://www.cnblogs.com/shw940795634/p/15835394.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有