4 条题解

  • 1
    @ 2025-12-27 18:32:16
    #include <bits/stdc++.h>
    using namespace std;
    
    int main()
    {
        double ans = 0, n, m;
        cin >> n;
        for (int i = 1; i <= n; i++)
        {
            cin >> m;
            ans += m;
        }
        cout << ans << " " << fixed << setprecision(5) << ans / n << endl;
        return 0;
    }
    

    信息

    ID
    936
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    231
    已通过
    90
    上传者