Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
40826 | 张淳睿 | 地球人口承载力估计 | C++ | Accepted | 0 MS | 248 KB | 171 | 2024-02-17 17:23:10 |
#include<iostream> 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; printf("%.2f",z); return 0; }