AtCoder Beginner Contest 078
翻译中…
Problem Statement
翻译中…
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
翻译中…
Output
翻译中…
Print the answer.
翻译中…
样例
Input #1
13 3 1
Output #1
3
There is just enough room for three, as shown below:
 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
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。