3 条题解

  • 1
    @ 2025-3-6 17:35:00

    #include<bits/stdc++.h>

    using namespace std;

    int main()

    {

    double r,r1,r2;
    
    cin>>r1>>r2;
    
    r=1/(1/r1+1/r2);
    
    cout<<fixed<<setprecision(2)<<r;
    
    return 0;
    

    }

    • 0
      @ 2025-3-9 20:25:09

      #include<bits/stdc++.h> using namespace std; int main(){ float r1,r2; cin >> r1 >> r2; cout << fixed<< setprecision(2) << 1 / (1 / r1 + 1 / r2); return 0; }

      • 0
        @ 2025-3-7 17:18:43

        #include<bits/stdc++.h> using namespace std; int main(){ float r1,r2; cin>>r1>>r2; cout<<fixed<<setprecision(2) <<1 / (1 / r1 +1 / r2); return 0; }

        • 1

        信息

        ID
        17
        时间
        1000ms
        内存
        256MiB
        难度
        2
        标签
        递交数
        116
        已通过
        71
        上传者