Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
8536 | 毕潇天 | 地球人口承载力估计 | C++ | Accepted | 0 MS | 244 KB | 214 | 2023-02-10 15:55:46 |
#include <iostream> #include <iomanip> using namespace std; int main() { int x,a,y,b; cin >> x >> a >> y >> b; double z=(y*b-x*a)*1.0/(b-a); cout << fixed << setprecision(2) << z << endl; return 0; }