sqlm
by 0x28202e202e29 @ 2024-10-30 17:22:48
(((
```python
mx = -0x7ffffff
def c(n, m):
global mx
for i in range(n):
a = list(map(int,input().split()))#输入
a.pop(a.index(max(a)))#把最大值删除
a.pop(a.index(min(a)))#把最小值删除
if(sum(a) / (m-2) > mx):#当每名同学的大于平均值就进入 因为是要求最大平均值
mx = sum(a) / (m - 2)#去掉最大值和最小值以后的平均值
n, m=map(int,input().split())
c(n, m)
print(format(mx, ".2f"))#控制2位小数
```
by Estrella_Explore @ 2024-10-30 17:37:34
@[0x28202e202e29](/user/790188) 哈哈哈
没看懂
by Echo5201 @ 2024-10-30 19:01:31
@[Estrella_Explore](/user/937928) 可以可以 谢谢大佬
by Echo5201 @ 2024-10-30 19:01:50