Home > Back-end >  F
F

Time:11-04

Approach: find the maximum and the minimum
Process: total minus the maximum and the minimum average again
Feeling: to keep the decimal, double input and output by 1.0,

#include

#include

using namespace std;

Int main () {

Int n, t;

While (cin & gt;> N) {

Int s=0, min=100, Max=0;

for(int i=0; i
Cin & gt;> t;

S +=t;

If (t
If (t> Max) Max=t;

}

Cout & lt;
}

}