解题思路:
注意事项:
参考代码:
n=int(input())
x=list(map(int,input().strip().split()))
a=[]
b=[]
c=[]
d=[]
e=[]
for i in x:
if i>=90:
a.append(i)
elif i<=89 and i>=80:
b.append(i)
elif i<=79 and i>=70:
c.append(i)
elif i<=69 and i>=60:
d.append(i)
else:
e.append(i)
print(len(a),len(b),len(c),len(d),len(e))
xx=[len(a),len(b),len(c),len(d),len(e)]
xy=[a,b,c,d,e]
print(max(xx))
for i in range(0,len(xx)):
if xx[i]==max(xx):
for j in sorted(xy[i],reverse=True):
print(j,end=' ')
0.0分
0 人评分