题解 | #牛牛的并联电路#
牛牛的并联电路
http://www.nowcoder.com/practice/6e13936b6fc54f52ac22efd6c8e7fef3
#include<iostream>
using namespace std;
int main(){
int r1,r2;
cin>>r1>>r2;
double res= 1.0/(1.0/r1 + 1.0/r2);
printf("%.1lf",res);
return 0;
}