018. Machines

Codeforces
IDCF10269018
Time1000ms
Memory256MB
Difficulty
English · Original
Formal · Original
In mechanical engineering, the primary tool used to measure the energy amplified into a simple machine or a compound machine is called a concept known as the Mechanical Advantage, which signifies the ratio of the energy put into a machine, and the amount of force it outputs. In one type of simple machine, the lever, mechanical advantage will be calculated by the lengths of the two sides, with the position of the fulcrum determining the length of the two sides. A diagram and a simplified formula of this process has been given below: Your objective is to find the mechanical advantage of a lever, given side A and side B. The first positive integer n is the amount of inputs that will follow. ## Input Your objective is to find the mechanical advantage of a lever, given side A and side B. The first positive integer n is the amount of inputs that will follow. [samples]
**Definitions** Let $ n \in \mathbb{Z}^+ $ be the number of test cases. For each test case $ i \in \{1, \dots, n\} $, let $ A_i, B_i \in \mathbb{R}^+ $ denote the lengths of the two sides of the lever. **Constraints** 1. $ n \geq 1 $ 2. $ A_i > 0 $, $ B_i > 0 $ for all $ i \in \{1, \dots, n\} $ **Objective** For each test case $ i $, compute the mechanical advantage $ MA_i $: $$ MA_i = \frac{A_i}{B_i} $$
API Response (JSON)
{
  "problem": {
    "name": "018. Machines",
    "description": {
      "content": "In mechanical engineering, the primary tool used to measure the energy amplified into a simple machine or a compound machine is called a concept known as the Mechanical Advantage, which signifies the ",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10269018"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "In mechanical engineering, the primary tool used to measure the energy amplified into a simple machine or a compound machine is called a concept known as the Mechanical Advantage, which signifies the ...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ n \\in \\mathbb{Z}^+ $ be the number of test cases.  \nFor each test case $ i \\in \\{1, \\dots, n\\} $, let $ A_i, B_i \\in \\mathbb{R}^+ $ denote the lengths of the two sides of the l...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments