016. Gravity Vehicle Testing

Codeforces
IDCF10269016
Time1000ms
Memory256MB
Difficulty
English · Original
Formal · Original
While testing your gravity vehicle for Science Olympiad, you have decided to test the vehicle both on Earth, and on Mars. You want to know the gravitational constant of the planet that you are currently testing the vehicle on. You are given that the gravitational constant on Earth is 9.807 m/s^2 and the gravitational constant on Mars is 3.711 m/s^2. The only line of input contains a single string _s_: either "EARTH" or "MARS", which indicates the planet that you are currently testing the gravity vehicle on. Output a single decimal number: the gravitational constant of the planet that you are testing the vehicle on. ## Input The only line of input contains a single string _s_: either "EARTH" or "MARS", which indicates the planet that you are currently testing the gravity vehicle on. ## Output Output a single decimal number: the gravitational constant of the planet that you are testing the vehicle on. [samples]
**Definitions** Let $ s \in \{\text{"EARTH"}, \text{"MARS"}\} $ be the input string indicating the planet. **Constraints** $ s \in \{\text{"EARTH"}, \text{"MARS"}\} $ **Objective** Output the gravitational constant $ g $ defined as: $$ g = \begin{cases} 9.807 & \text{if } s = \text{"EARTH"} \\ 3.711 & \text{if } s = \text{"MARS"} \end{cases} $$
API Response (JSON)
{
  "problem": {
    "name": "016. Gravity Vehicle Testing",
    "description": {
      "content": "While testing your gravity vehicle for Science Olympiad, you have decided to test the vehicle both on Earth, and on Mars. You want to know the gravitational constant of the planet that you are current",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10269016"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "While testing your gravity vehicle for Science Olympiad, you have decided to test the vehicle both on Earth, and on Mars. You want to know the gravitational constant of the planet that you are current...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ s \\in \\{\\text{\"EARTH\"}, \\text{\"MARS\"}\\} $ be the input string indicating the planet.\n\n**Constraints**  \n$ s \\in \\{\\text{\"EARTH\"}, \\text{\"MARS\"}\\} $\n\n**Objective**  \nOutput the ...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments