mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-27 06:12:00 +00:00
11 lines
208 B
C++
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;
|
||
|
}
|