0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-20 14:05:25 +00:00
OI-codes/Luogu/problem/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;
}