5561: Horizon地平线(ABC239A)
内存限制:1024 MB
时间限制:2.000 S
评测方式:文本比较
命题人:
提交:1
解决:1
题目描述
Problem Statement:
Assuming that the horizon seen from a place $x$ meters above the ground is $\sqrt{x(12800000+x)}$ meters away, find how many meters away the horizon seen from a place $H$ meters above the ground is.
Assuming that the horizon seen from a place $x$ meters above the ground is $\sqrt{x(12800000+x)}$ meters away, find how many meters away the horizon seen from a place $H$ meters above the ground is.
假设从地面上方 x 米处看到的地平线距离为 $\sqrt{x(12800000+x)}$ 米,求从地面上方 H 米处看到的地平线距离是多少米。
输入
H
输出
Output:
Print the answer.
Your answer will be considered correct when the absolute or relative error from the judge's answer is at most $10^{-9}$.
输出所求答案,保留9位小数。当你的答案与评判答案的绝对误差或相对误差不超过10^-9时,将被视为正确。
Print the answer.
Your answer will be considered correct when the absolute or relative error from the judge's answer is at most $10^{-9}$.
输出所求答案,保留9位小数。当你的答案与评判答案的绝对误差或相对误差不超过10^-9时,将被视为正确。
样例输入 复制
333
样例输出 复制
65287.907678222
提示
Constraints:
- $1 \leq H \leq 10^5$
- $H$ is an integer.
数据范围:- $1 \leq H \leq 10^5$ H是一个整数
- $1 \leq H \leq 10^5$
- $H$ is an integer.
数据范围:- $1 \leq H \leq 10^5$ H是一个整数