Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: 68pretoi00314

Problemset: Find Score

Language: cpp

Time: 0.003 second

Submitted On: 2025-12-17 19:03:13

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n,mx=0,mn=99999;
    double avg=0;
    cin>>n;
    for(int i=1;i<=n;i++){
        int x;
        cin>>x;
        if(x>mx){
            mx = x;
        }
        if(x<mn){
            mn = x;
        }
        avg+=x;
    }
    cout<<mx<<"\n"<<mn<<"\n";
    cout << fixed << setprecision(2) << avg/n;
}