0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 03:31:59 +00:00

B2006 地球人口承载力估计

R52397380
This commit is contained in:
Baoshuo Ren 2021-07-04 20:59:20 +08:00 committed by Baoshuo Ren
parent c7117e9d2b
commit 52782bee54
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

View File

@ -0,0 +1,10 @@
#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;
}