Horizon

AtCoder
IDabc239_a
Time2000ms
Memory256MB
Difficulty
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. ## Constraints * $1 \leq H \leq 10^5$ * $H$ is an integer. ## Input Input is given from Standard Input in the following format: $H$ [samples]
Samples
Input #1
333
Output #1
65287.907678222

We have $\sqrt{333(12800000+333)} = 65287.9076782\ldots$. Outputs such as `65287.91` would also be accepted.
Input #2
634
Output #2
90086.635834623

We have $\sqrt{634(12800000+634)} = 90086.6358346\ldots$.
API Response (JSON)
{
  "problem": {
    "name": "Horizon",
    "description": {
      "content": "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.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc239_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "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.\n\n...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments