#include
#define N 3
#define M 2
int main ()
{
int i,j;
double k;
char t;
double a[N][M];
double aver[M];
char name[M];
double max[M],min[M];
for(i=0;i
scanf("%s",&name[i]);
printf("enter 3 OB put this xuanshou score!\n");
for(j=0;j
scanf("%lf",&a[i][j]);}
}
k=0;
for(j=0;j
k=min[j];a[j][1]=k;
for(i=0;i
if (max[j] k=min[j];a[j][1]=k;
}
k=0;
for(i=0;i
for(j=0;j
aver[i]=(k-max[i]-min[i])/(N-2);
}
char temp;
for (i=0;i
for (j=i+1;j
aver[j]=aver[i];
aver[i]=t;
temp=name[j];
name[j]=name[i];
name[i]=t;
}
}
for(i=0;i
printf(" %s",name[i]);
printf(" %lf",aver[i]);
printf("\n");
}
return 0;
}