#abc239a. A - Horizon

A - Horizon

Score : 100100 points

问题陈述

假设从地面上 xx 米高的地方看到的地平线距离为 x(12800000+x)\sqrt{x(12800000+x)} 米,求从地面上 HH 米高的地方看到的地平线距离是多少米。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

Assuming that the horizon seen from a place xx meters above the ground is x(12800000+x)\sqrt{x(12800000+x)} meters away, find how many meters away the horizon seen from a place HH meters above the ground is.

Constraints

  • 1H1051 \leq H \leq 10^5
  • HH is an integer.

Input

Input is given from Standard Input in the following format:

HH

Output

Print the answer.
Your answer will be considered correct when the absolute or relative error from the judge's answer is at most 10610^{-6}.

Sample Input 1

333

Sample Output 1

65287.907678222

We have 333(12800000+333)=65287.9076782\sqrt{333(12800000+333)} = 65287.9076782\ldots. Outputs such as 65287.91 would also be accepted.

Sample Input 2

634

Sample Output 2

90086.635834623

We have 634(12800000+634)=90086.6358346\sqrt{634(12800000+634)} = 90086.6358346\ldots.

update @ 2024/3/10 10:18:42