문제출처 : https://www.acmicpc.net/problem/1546
code
#include <iostream>
using namespace std;
int main()
{
int max = 0;
double N,score[1000], sum = 0;
cin >> N;
for (int i = 0; i < N; i++)
{
cin >> score[i];
if (score[i] > max)
max = score[i];
}
for (int i = 0; i < N; i++)
{
score[i] = score[i] / max * 100;
sum += score[i];
}
cout << sum / N;
return 0;
}