Files
OI-source/history_source/ccf 入门篇/U4/4.1.8.cpp
2023-08-03 09:22:52 +08:00

21 lines
233 B
C++

#include<iostream>
using namespace std;
int main()
{
int a,b,s,f;
while(true)
{
cin>>s;
b=s+1;
a=a+s;
for(int i=0;i<9;i++)
{
cin>>f;
if(f>b) b=f;
if(f<s) s=f;
a=a+f;
}
cout<<(a-b-s)/8.0<<endl<<endl;
}
}