0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-24 15:28:48 +00:00
OI-codes/Luogu/problem/B2006/B2006.cpp
2021-07-04 20:59:20 +08:00

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