Brick

AtCoder
IDabc186_a
Time2000ms
Memory256MB
Difficulty
We have a truck, which can carry at most $N$ kilograms. We will load bricks onto this truck, each of which weighs $W$ kilograms. At most how many bricks can be loaded? ## Constraints * $1\leq N,W \leq 1000$ * $N$ and $W$ are integers. ## Input Input is given from Standard Input in the following format: $N$ $W$ [samples]
Samples
Input #1
10 3
Output #1
3

Each brick weighs $3$ kilograms, so $3$ bricks weigh $9$ kilograms, and $4$ weigh $12$ kilograms.
Thus, we can load at most $3$ bricks onto the truck that can carry at most $10$ kilograms.
Input #2
1000 1
Output #2
1000
API Response (JSON)
{
  "problem": {
    "name": "Brick",
    "description": {
      "content": "We have a truck, which can carry at most $N$ kilograms. We will load bricks onto this truck, each of which weighs $W$ kilograms. At most how many bricks can be loaded?",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc186_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "We have a truck, which can carry at most $N$ kilograms.\nWe will load bricks onto this truck, each of which weighs $W$ kilograms. At most how many bricks can be loaded?\n\n## Constraints\n\n*   $1\\leq N,W ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments