3 solutions

  • 2
    @ 2025-2-14 17:52:17
    #include<bits/stdc++.h>
    #define yy return 0;
    using namespace std;
    double a,b;
    int main() { cin>>a>>b;printf("%.2lf",1.0/(1.0/a+1.0/b));yy
    }
    • 0
      @ 2025-10-26 10:33:31

      #include<bits/stdc++.h> #define yy return 0; using namespace std; double a,b; int main() { cin>>a>>b;printf("%.2lf",1.0/(1.0/a+1.0/b));yy }

      • 0
        @ 2025-9-17 21:42:57
        #include<iostream>
        #include<iomanip>
        using namespace std;
        int main(){
            double a,b,R;
            cin>>a>>b;
            R=1/(1/a+1/b);
            cout<<fixed<<setprecision(2)<<R;
            return 0;
        }
        
        • 1

        Information

        ID
        4465
        Time
        1000ms
        Memory
        128MiB
        Difficulty
        1
        Tags
        (None)
        # Submissions
        161
        Accepted
        135
        Uploaded By