文件目录

#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    int n, a, m;
    double s = 0;
    cin >> n;
    m = n;
    while (m--)
    {
        cin >> a;
        s += a;
    }
    double ave = s / n;
    cout << fixed << setprecision(2) << ave;
    return 0;
}
int ans2()
{
    int n, a;
    double s = 0;
    cin >> n;
    for (int i = 1; i <= n; i++)
    {
        cin >> a;
        s += a;
    }
    double ave = s / n;
    cout << fixed << setprecision(2) << ave;
    return 0;
}
int ans1()
{
    int n, s = 0, a;
    cin >> n;
    for (int i = 1; i <= n; i++)
    {
        cin >> a;
        s += a;
    }
    double ave = 1.0 * s / n;
    cout << fixed << setprecision(2) << ave;
    return 0;
}