[微软]题目1 : Farthest Point

来源:互联网 发布:便宜好用剃须刀知乎 编辑:程序博客网 时间:2024/06/06 18:03
题目1 : Farthest Point时间限制:5000ms单点时限:1000ms内存限制:256MB描述Given a circle on a two-dimentional plane.Output the integral point in or on the boundary of the circle which has the largest distance from the center.输入One line with three floats which are all accurate to three decimal places, indicating the coordinates of the center x, y and the radius r.For 80% of the data: |x|,|y|<=1000, 1<=r<=1000For 100% of the data: |x|,|y|<=100000, 1<=r<=100000输出One line with two integers separated by one space, indicating the answer.If there are multiple answers, print the one with the largest x-coordinate.If there are still multiple answers, print the one with the largest y-coordinate.样例输入1.000 1.000 5.000样例输出6 1EmacsNormalVim
0 0
原创粉丝点击