'陶陶'摘苹果
发布时间
阅读量:
阅读量
029:陶陶摘苹果
总时间限制:
1000ms
内存限制:
65536kB
描述
在院子中央的位置上生长着一棵老apple tree, which bears a dozen apples each autumn. Once the apples reach maturity, she would venture out to pick them. With a stool that stands at 30 centimeters tall, she would attempt to reach the apples by standing on it if her hands couldn't reach them.
明确知道10个苹果各自离地面的高度数据,并且了解当陶陶将手臂完全伸展时的最大 reachable height,请协助计算在这些条件下她能够采摘的苹果数量。假设当她触及这些苹果时,它们会立即落下。
输入
包括两组数据。第一组包含10个100至200之间的整数(单位:厘米),分别表示10个苹果距离地面的高度;这10个相邻的整数之间由一个空格分隔开。第二组仅包含一个100至120之间的整数(单位:厘米),表示陶陶伸手完全展开时能达到的最大高度。
输出
**包括一行,这一行只包含一个整
全部评论 (0)
还没有任何评论哟~
