Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
54374 | zhangweiran | 地球人口承载力估计 | C++ | Accepted | 0 MS | 252 KB | 201 | 2024-10-27 15:54:01 |
#include<bits/stdc++.h> using namespace std; int main() { float a,b,x,y; cin >> x >> a >> y >> b ; float z=(b*y-a*x)/(b-a); cout<<fixed << setprecision(2) <<z; return 0; }