100781: [AtCoder]ABC078 B - ISU

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $200$ points

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.


Sample Input 1

13 3 1

Sample Output 1

3

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

Figure


Sample Input 2

12 3 1

Sample Output 2

2

Sample Input 3

100000 1 1

Sample Output 3

49999

Sample Input 4

64146 123 456

Sample Output 4

110

Sample Input 5

64145 123 456

Sample Output 5

109

Input

题意翻译

##### 大意:椅子上坐人,椅子长为X厘米,每个人占地长为Y厘米,每人之间和座位末端的人与椅子边缘的间隔为Z厘米长,求椅子最大能坐多少人。 ##### 输入:X Y Z 1 ≤ X,Y,Z ≤ 105 Y + 2*Z ≤ X X,Y,Z都为整数 ##### 输出:最大人数 ## 原题: 我们有一个宽X厘米的长座位。有很多人想坐在这里。坐在座位上的人总是占据长度为Y厘米的间隔。 我们想让尽可能多的人坐下来,但他们都非常害羞,两个人之间,以及座位末端和一个人之间必须有至少Z厘米的长度差距。 最多有多少人可以坐在座位上?

加入题单

算法标签: