Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
50825 | wuzhiyan | 地球人口承载力估计 | C++ | Accepted | 0 MS | 248 KB | 198 | 2024-09-13 21:01:03 |
#include<bits/stdc++.h> using namespace std; int main() { double x,a,y,b; cin>>x>>a>>y>>b; double z=(b*y-a*x)/(b-a); cout<<fixed<<setprecision(2)<<z<<endl; return 0; }