-->
当前位置:首页 > 题库

PROGRAMMING:Brother Hong's apple tree

Luz5年前 (2021-05-10)题库442
There is a peach tree in brother Honghong's yard. Every autumn, there are 10 peaches on the tree. When the peaches are ripe, brother Hong will run to pick them. Brother Honghong has a 30 cm high bench. When he can't pick peaches directly by hand, he will step on the bench and try again. Now we know the height of 10 peaches to the ground and the maximum height that brother Hong can reach when he straightens his hand. Please help brother Hong calculate the number of peaches he can pick. If he touches a peach, it will fall.
###Input format:
The first line gives the height (CM) of 10 peaches to the ground.
In the second line, enter the maximum height (CM) that Hongge can reach when he straightens his hand.
###Output format:
Output the number of peaches that brother Hong can pick n.
###Input example:
Here is a set of inputs. For example:
```in
26 95 43 77 49 31 87 19 35 65
forty
```
###Output example:
The corresponding output is given here. For example:
```out
seven
```







answer:If there is no answer, please comment