mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2025-01-12 15:32:11 +00:00
B2006 地球人口承载力估计
R52397380
This commit is contained in:
parent
c7117e9d2b
commit
52782bee54
10
Luogu/problem/B2006/B2006.cpp
Normal file
10
Luogu/problem/B2006/B2006.cpp
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user