1 条题解

  • 0
    @ 2023-7-5 12:07:50
    #include <bits/stdc++.h>
    using namespace std;
    int max(int x, int y, int z)
    {
        if (x > y && x > z)
            return x;
        if (y > z)
            return y;
        return z;
    }
    int main()
    {
        ios::sync_with_stdio(false);
        cin.tie(0);
        int a, b, c;
        double m;
        cin >> a >> b >> c;
        m = max(a, b, c) / ((double)max(a + b, b, c) * max(a, b, b + c));
        cout << fixed << setprecision(3) << m << "\n";
        return 0;
    }
    
    • 1

    信息

    ID
    1303
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    递交数
    37
    已通过
    23
    上传者