萌萌摘苹果思路遍历苹果高度列表,判断是否能够到苹果,然后将能够到的苹果高度添加到一个新列表,循环结束之后,对两个列表长度进行比较,若长度一样返回Yes,否则返回No 代码12345678910111213n = int(input())height = [int(x) for x in input().split(' ')]high = int(input())get_height = []for i in height: if i <= high+30: get_height.append(i)print(len(get_height))if len(get_height)==len(height): print('Yes')else: print('No')