limitlessly @ 2024-10-14 21:49:41
#include<bits/stdc++.h>
using namespace std;
int x,n,sum,mx,mn=15;
int main(){
scanf("%d",&n);
while(n--){
scanf("%d",&x);
sum+=x;
mx=max(mx,x);
mn=min(mn,x);
}
printf("%.2f",1.0*(sum-mx-mn)/(n-2));
return 0;
}
by _Spectator_ @ 2024-10-14 22:03:23
@limitlessly 因为你 while(n--)
结束后
by limitlessly @ 2024-10-15 21:34:10
@cjrawa 已解决 感谢