045. Planet Omicron Persei VIII

Codeforces
IDCF10269045
Time1000ms
Memory256MB
Difficulty
English · Original
Formal · Original
You are on planet Omicron Persei VIII and you find that the force due to gravity on you is Fg newtons, you also know that you have a mass of M. Using this information you want to know how long it will take for an object to fall (time T in seconds) a distance D starting from rest (Vi speed when the object is initially released). Using the following equations Fg = MG and D = ViT+½GT^2. The first line will be the force due to gravity of you (Fg), the second line is your mass (M) and the third is the distance the object is going to fall (D). Print the time that it will take for the object to fall d meters in the following format: "It will take the object T seconds to fall D meters". Your answer should also be rounded to the nearest tenth. If you are getting confused by the Vi part here is a hint. When an object is at rest, meaning not moving, what is its speed. ## Input The first line will be the force due to gravity of you (Fg), the second line is your mass (M) and the third is the distance the object is going to fall (D). ## Output Print the time that it will take for the object to fall d meters in the following format: "It will take the object T seconds to fall D meters". Your answer should also be rounded to the nearest tenth. [samples] ## Note If you are getting confused by the Vi part here is a hint. When an object is at rest, meaning not moving, what is its speed.
**Definitions** Let $ F_g \in \mathbb{R}^+ $ be the gravitational force (in newtons). Let $ M \in \mathbb{R}^+ $ be the mass (in kilograms). Let $ D \in \mathbb{R}^+ $ be the fall distance (in meters). Let $ G = \frac{F_g}{M} $ be the gravitational acceleration (in m/s²). Let $ V_i = 0 $ be the initial velocity (object starts from rest). Let $ T \in \mathbb{R}^+ $ be the time (in seconds) to fall distance $ D $. **Constraints** 1. $ F_g > 0 $ 2. $ M > 0 $ 3. $ D > 0 $ **Objective** Solve for $ T $ in the equation: $$ D = \frac{1}{2} G T^2 $$ Then output: "It will take the object $ \text{round}(T, 1) $ seconds to fall $ D $ meters"
API Response (JSON)
{
  "problem": {
    "name": "045. Planet Omicron Persei VIII",
    "description": {
      "content": "You are on planet Omicron Persei VIII and you find that the force due to gravity on you is Fg newtons, you also know that you have a mass of M. Using this information you want to know how long it will",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10269045"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are on planet Omicron Persei VIII and you find that the force due to gravity on you is Fg newtons, you also know that you have a mass of M. Using this information you want to know how long it will...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ F_g \\in \\mathbb{R}^+ $ be the gravitational force (in newtons).  \nLet $ M \\in \\mathbb{R}^+ $ be the mass (in kilograms).  \nLet $ D \\in \\mathbb{R}^+ $ be the fall distance (in m...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments