089. The Model

Codeforces
IDCF10269089
Time1000ms
Memory256MB
Difficulty
English · Original
Formal · Original
The Model You are making a model airplane, which will be powered by rubber bands. Luckily, to speed up the process of winding the rubber bands, you have a crank winder, which has a certain ratio (e.g. 15:1), representing how many winds of the rubber band one turn of the winder will result in. Given this value, and how many winds you ultimately want the airplane's rubber band to have, figure out how many times you need to turn the winder. The first line of input contains a single positive integer $n$, representing the number of winds you want the plane to have. The second line of input contains a single positive integer $m$, representing how many winds of the rubber band one turn of the winder corresponds to. Output a single positive integer $w$: how many times you need to spin the winder. This value is guaranteed to be an integer. For the first example, $150. 0$ would also be judged as a correct answer. ## Input The first line of input contains a single positive integer $n$, representing the number of winds you want the plane to have. The second line of input contains a single positive integer $m$, representing how many winds of the rubber band one turn of the winder corresponds to. ## Output Output a single positive integer $w$: how many times you need to spin the winder. This value is guaranteed to be an integer. [samples] ## Note For the first example, $150. 0$ would also be judged as a correct answer.
**Definitions** Let $ n \in \mathbb{Z}^+ $ be the desired number of winds on the rubber band. Let $ m \in \mathbb{Z}^+ $ be the winding ratio (winds per turn of the crank). **Constraints** $ n \geq 1 $, $ m \geq 1 $, and $ \frac{n}{m} \in \mathbb{Z}^+ $. **Objective** Compute the number of crank turns $ w $: $$ w = \frac{n}{m} $$
API Response (JSON)
{
  "problem": {
    "name": "089. The Model",
    "description": {
      "content": "The Model You are making a model airplane, which will be powered by rubber bands. Luckily, to speed up the process of winding the rubber bands, you have a crank winder, which has a certain ratio (e.g",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10269089"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "The Model\n\nYou are making a model airplane, which will be powered by rubber bands. Luckily, to speed up the process of winding the rubber bands, you have a crank winder, which has a certain ratio (e.g...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ n \\in \\mathbb{Z}^+ $ be the desired number of winds on the rubber band.  \nLet $ m \\in \\mathbb{Z}^+ $ be the winding ratio (winds per turn of the crank).  \n\n**Constraints**  \n$ ...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments