0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 20:36:26 +00:00
OI-codes/Luogu/B2006/B2006.cpp

11 lines
208 B
C++
Raw Normal View History

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