1791: 【CSP数组】陶陶摘苹果▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:5 Solved:5

Description

陶陶家的院子里有一棵苹果树,每到秋天树上就会结出 lns="http://www.w3.org/1998/Math/MathML">10 个苹果。苹果成熟的时候,陶陶就会跑去摘苹果。陶陶有个 lns="http://www.w3.org/1998/Math/MathML">30 厘米高的板凳,当她不能直接用手摘到苹果的时候,就会踩到板凳上再试试。

现在已知 lns="http://www.w3.org/1998/Math/MathML">10 个苹果到地面的高度,以及陶陶把手伸直的时候能够达到的最大高度,请帮陶陶算一下她能够摘到的苹果的数目。假设她碰到苹果,苹果就会掉下来。

Input

包括两行数据。

第一行包含 lns="http://www.w3.org/1998/Math/MathML">10 个 lns="http://www.w3.org/1998/Math/MathML">100 到 lns="http://www.w3.org/1998/Math/MathML">200 之间(包括 lns="http://www.w3.org/1998/Math/MathML">100 和 lns="http://www.w3.org/1998/Math/MathML">200 )的整数(以厘米为单位)分别表示 lns="http://www.w3.org/1998/Math/MathML">10 个苹果到地面的高度,两个相邻的整数之间用一个空格隔开。

第二行只包括一个 lns="http://www.w3.org/1998/Math/MathML">100 到 lns="http://www.w3.org/1998/Math/MathML">120 之间(包含 lns="http://www.w3.org/1998/Math/MathML">100 和 lns="http://www.w3.org/1998/Math/MathML">120 )的整数(以厘米为单位),表示陶陶把手伸直的时候能够达到的最大高度。

Output

包括一行,这一行只包含一个整数,表示陶陶能够摘到的苹果的数目。

Sample Input Copy

100 200 150 140 129 134 167 198 200 111
110

Sample Output Copy

5