题解分享
题解分享简介
电阻的阻抗 - 题解
```
//1/((1/r1)+(1/r2))
#include <bits/stdc++.h>
using namespace std;
int main()
{
double r1,r2,r;
cin >> r1 >> r2;
r = 1/((1/r1)+(1/r2));
cout << fixed << setprecision(2) << r;
return 0;
}
```
0
0
0
2



