0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-28 20:36:27 +00:00
OI-codes/Luogu/problem/B2015/B2015.cpp
2021-07-16 10:57:48 +08:00

11 lines
188 B
C++

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