2 条题解

  • 0
    @ 2026-3-9 21:20:22

    #include #include using namespace std; int main () { double x,y,R; cin>>x>>y; R=(x*y)/(x+y); cout<<fixed<<setprecision(2)<<R<<endl; return 0; }

    • 0
      @ 2024-10-19 21:56:04
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	double a,b;
      	cin>>a>>b;
      	cout<<fixed<<setprecision(2)<<1/(1/a+1/b);
      	return 0;
      }
      
      • 1

      信息

      ID
      443
      时间
      1000ms
      内存
      128MiB
      难度
      4
      标签
      递交数
      33
      已通过
      17
      上传者