本人为一蒟蒻,只会Python,望dalao解答!
l=[0]*10 for i in range(len(l)): l[i]=int(input()) n=int(input()) s=0 for i in range(len(l)): if n+30>=l[i] s+1 print(s)