#include<iostream>
using namespace std;
int main(){
int a[10],max,min,sum=0,s;
for(int i=0;i<=9;i++){
cin>>a[i];
}
min=a[0];
for(int j=0;j<10;j++){
if(a[j]>max){
max=a[j];
}
if(a[j]<min){
min=a[j];
}
}
for(int i=0;i<10;i++){
sum=sum+a[i];
}
s=(sum-max-min)/8;
cout<<max<<" "<<min<<endl;
cout<<s<<endl;
}
标签:std,26,min,int,max,sum From: https://www.cnblogs.com/guozi6/p/17416469.html