"""
P5726 【深基4.习9】打分
https://www.luogu.com.cn/problem/P5726
"""
ans=0
n=int( input() )
a=list( map( int,input().split() ) )
a.sort()
i=1
while i<=n-2:
ans+=a[i]
i+=1
print("%.2lf" % (ans/(n-2)) )
P5726 【深基4.习9】打分(python3实现)
最新推荐文章于 2023-09-28 18:10:08 发布