Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: cheetah

Problemset: Find Score

Language: cpp

Time: 0.003 second

Submitted On: 2026-07-08 22:47:31

#include <bits/stdc++.h>
using namespace std;

int main () {
    ios_base::sync_with_stdio(0);
    cin.tie(0);

    int n, h = 1, l = 100;
    float a = 0;
    cin >> n;

    for (int i = 0; i < n; ++i) {
        int x;
        cin >> x;
        a += x;
        if (h < x) {
            h = x;
        }
        if (l > x) {
            l = x;
        }
    }

    cout << h << "\n" << l << "\n" << fixed << setprecision(2) << (a / n);
    
    return 0;
}