평균을 조작하는 문제
#include <iostream>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
vector<double> v;
double input;
double MAX = 0;
for (int i = 0; i < N; i++) {
cin >> input;
if (input > MAX)
MAX = input;
v.push_back(input);
}
vector<double> new_v;
double sum = 0;
for (int i = 0; i < N; i++) {
new_v.push_back((double)(v[i] / MAX) * 100);
sum += new_v[i];
}
cout << "\n" << sum / N;
return 0;
}