Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
38574 | chenyifei | 地球人口承载力估计 | C++ | Accepted | 0 MS | 252 KB | 170 | 2024-01-27 19:00:01 |
#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; }