Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: cyblox_boi
Problemset: Find Score
Language: cpp
Time: 0.003 second
Submitted On: 2025-12-29 22:15:37
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;
vector<int> scores(n);
for (int i = 0; i < n; i++)
{
cin >> scores[i];
}
int highest = *max_element(scores.begin(), scores.end());
int lowest = *min_element(scores.begin(), scores.end());
double average = accumulate(scores.begin(), scores.end(), 0) / (double)n;
cout << highest << '\n';
cout << lowest << '\n';
cout << fixed << setprecision(2) << average << '\n';
return 0;
}