提交时间:2019-11-28 21:14:43

运行 ID: 2514

#include<iostream> using namespace std; int main(){ int n,max=0,min=100; double score[20001]={0},sum=0; cin>>n; for(int i=1;i<=n;i++){ cin>>score[i]; sum+=score[i]; if(score[i]>max) max=score[i]; if(score[i]<min) min=score[i]; } printf("%.1lf",(sum-min-max)/(n-2)); return 0; }