#include <iostream>
using namespace std;
int main()
{
int k(0);
int a[10];
float sum(0);
float max = 10000000;
float min = -1000000;
float ave;
while (k < 10)
{
cout << "请输入您给出的分数(0--100):" << endl;
cin >> a[k];
sum = sum + a[k];
k++;
}
for (int l = 0; l < 10; l++)
{
if (a[l] <= max)
{
max = a[l];
}
if (a[l] >= min)
{
min = a[l];
}
}
ave = float((sum-max-min) / 8);
cout << "该选手的最终得分为:" << endl;
cout << ave;
return 0;
}