Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
29170 | lnx | 地球人口承载力估计 | C++ | Accepted | 0 MS | 248 KB | 205 | 2023-10-21 18:28:27 |
#include<iostream> #include<iomanip> using namespace std; int main() { int x,a,y,b; cin>>x>>a>>y>>b; float e,f,z; e=b*y-a*x; f=b-a; z=e/f; cout<<fixed<<setprecision(2)<<z; return 0; }