2 solutions

  • 1
    @ 2025-7-4 9:15:37
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        double n,e,cnt;
        cin>>n;
        for(int i=1;i<=n;i++)
        {
            cin>>e;
            cnt+=e;
        }
        cout<<fixed<<setprecision(2)<<cnt/n;
        return 0;
    }
    

    Information

    ID
    871
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    187
    Accepted
    70
    Uploaded By