Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
52244 | lixinyu | 地球人口承载力估计 | C++ | Accepted | 0 MS | 256 KB | 187 | 2024-09-28 18:58:26 |
#include <bits/stdc++.h> using namespace std; int main() { int x,a,y,b; float n; cin>>x>>a>>y>>b; n=(b*y-a*x)/(b-a); cout<<fixed<<setprecision(2)<<n<<endl; return 0; }