Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
56142 | 许兴平 | 地球人口承载力估计 | C++ | Accepted | 0 MS | 248 KB | 250 | 2024-11-09 14:39:45 |
#include<bits/stdc++.h> using namespace std; int human1,human2,time1,time2; double rise; int main(){ cin>>human1>>time1>>human2>>time2; rise=(human1*time1-human2*time2)/(time1-time2); cout<<fixed<<setprecision(2)<<rise<<endl; return 0; }