ISU

AtCoder
IDabc078_b
Time2000ms
Memory256MB
Difficulty
We have a long seat of width $X$ centimeters. There are many people who wants to sit here. A person sitting on the seat will always occupy an interval of length $Y$ centimeters. We would like to seat as many people as possible, but they are all very shy, and there must be a gap of length at least $Z$ centimeters between two people, and between the end of the seat and a person. At most how many people can sit on the seat? ## Constraints * All input values are integers. * $1 \leq X, Y, Z \leq 10^5$ * $Y+2Z \leq X$ ## Input Input is given from Standard Input in the following format: $X$ $Y$ $Z$ [samples]
Samples
Input #1
13 3 1
Output #1
3

There is just enough room for three, as shown below:

![image](https://img.atcoder.jp/abc078/4a35302937c3cbc2f625156e7834d27f.png)Figure
Input #2
12 3 1
Output #2
2
Input #3
100000 1 1
Output #3
49999
Input #4
64146 123 456
Output #4
110
Input #5
64145 123 456
Output #5
109
API Response (JSON)
{
  "problem": {
    "name": "ISU",
    "description": {
      "content": "We have a long seat of width $X$ centimeters. There are many people who wants to sit here. A person sitting on the seat will always occupy an interval of length $Y$ centimeters. We would like to seat ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc078_b"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "We have a long seat of width $X$ centimeters. There are many people who wants to sit here. A person sitting on the seat will always occupy an interval of length $Y$ centimeters.\nWe would like to seat ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments