Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
50846 | 张思存 | 地球人口承载力估计 | C++ | Wrong Answer | 0 MS | 240 KB | 218 | 2024-09-13 22:36:16 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b,x,y; cin>>x>>a>>y>>b; int z=(b*y-a*x)/(b-a); std::cout << std::fixed << std::setprecision(2) << z << std::endl; return 0; }