3 条题解

  • 0
    @ 2026-4-1 13:22:23

    #include<bits/stdc++.h> using namespace std; int a,b,c; int max(int a,int b,int c){ int s=max(max(a,b),c); return s; } int main(){ cin>>a>>b>>c; double m=1.0 * max(a,b,c) / (max(a+b,b,c) * max(a,b,b+c)); printf("%.3lf",m); return 0; }

    • 0
      @ 2026-3-31 17:44:36

      #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int x=max(max(a,b),c); int y=max(max(a+b,b),c); int z=max(max(a,b),b+c); double m=1.0x/(yz); printf("%.3f",m); return 0; } //抄的是6+1,7+1;

      • 0
        @ 2026-3-31 16:59:42

        别抄代码!

        #include<bits/stdc++.h>
        #define int long long
        using namespace std;
        int a,b,c;
        double m(int a,int b,int c){
            return 1.0 * max(a,b,c) / (max(a+b,b,c) * max(a,b,b+c));
        }
        signed main(){
            ios::sync_with_stdio(0);
            cin.tie(0),cout.tie(0);
            cin>>a>>b>>c;
            cout<<fixed<<setprecision(3)<<m(a,b,c);
            return 0;
        }
        
        • 1

        信息

        ID
        5631
        时间
        1000ms
        内存
        256MiB
        难度
        1
        标签
        递交数
        58
        已通过
        31
        上传者