标签:结果 double out mod car chm 输入数据 rip ++
#include<stdio.h> int main() { double s,max,min,score; int n; while(scanf("%d",&n)!=EOF) { s=0; max=0; min=200; for(int i=0;i<n;i++) { scanf("%lf",&score); if(score>max) max=score; if(score<min) min=score; s+=score; } printf("%.2f\n",(s-min-max)/(n-2)); } }
标签:结果 double out mod car chm 输入数据 rip ++
原文地址:https://www.cnblogs.com/wzmm/p/12512690.html