4 条题解

  • 0
    @ 2026-3-15 22:17:40

    #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; }

    #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;
    }
    

    信息

    ID
    820
    时间
    1000ms
    内存
    128MiB
    难度
    2
    标签
    递交数
    118
    已通过
    74
    上传者