Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132447 6倪葭轩 18陶陶摘苹果 Python3 Accepted 58 MS 3772 KB 339 2025-10-08 13:38:32

Tests(10/10):


Code:

# 读取苹果高度 apples = list(map(int, input().split())) # 读取陶陶伸手高度 taotao_height = int(input()) # 计算陶陶加上板凳后的总高度 total_height = taotao_height + 30 # 计算能够摘到的苹果数量 count = 0 for apple in apples: if apple <= total_height: count += 1 print(count)