0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-05 10:18:47 +00:00
OI-codes/Luogu/B2006/B2006.cpp

11 lines
208 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int x, a, y, b;
cin >> x >> a >> y >> b;
cout << fixed << setprecision(2) << 1.00 * (b * y - a * x) / (b - a) << endl;
return 0;
}