100 atcoder#ABC130B. [ABC130B] Bounding
[ABC130B] Bounding
Score : points
Problem Statement
A ball will bounce along a number line, making bounces. It will make the first bounce at coordinate , and the -th bounce at coordinate .
How many times will the ball make a bounce where the coordinate is at most ?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of times the ball will make a bounce where the coordinate is at most .
3 6
3 4 5
2
The ball will make a bounce at the coordinates , , and , among which two are less than or equal to .
4 9
3 3 3 3
4
The ball will make a bounce at the coordinates , , , and , among which four are less than or equal to .