求助

P5726 【深基4.习9】打分

Divebackintime @ 2022-02-10 10:19:16

a=int(input())
y=input()
scores = y.split(" ")[:a]
scores.sort()
if a>=3:
    del scores[a-1]
    del scores[0]
sum=0
for score in scores:
    score=int(score)
    sum=sum+score
fina_score=sum/(a-2)
print("%.2f"%fina_score)

总是只能过两个呜呜呜,求大佬教教


|