0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-05 01:46:27 +00:00
OI-codes/Luogu/B2015/B2015.cpp

11 lines
188 B
C++
Raw Normal View History

#include <bits/stdc++.h>
using namespace std;
int main() {
double r1, r2;
cin >> r1 >> r2;
cout << fixed << setprecision(2) << 1 / (1 / r1 + 1 / r2) << endl;
return 0;
}