int?main(int?argc,?char*?argv[]){
float?max?=?0.0;//最高分
float?min?=?0.0;//最低分
float?sum?=?0.0;?//總分
float?temp?=?0.0;//臨時存儲每次輸入?
short?int?n?=?0;//評委數
short?int?i?=?0;
scanf("%d",?&n);?
for(i?=?0;?i?<?n;?i++){
scanf("%f",?&temp);
if(temp?>?max)
max?=?temp;
if(temp?<?min?||?i?==?0)
min?=?temp;
sum?+=?temp;? ?
}?
printf("%.2f",(sum-max-min)/(n-2));?
return?0;?
}