Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
50890 | 张思存 | 地球人口承载力估计 | C++ | 解答错误 | 1 MS | 248 KB | 218 | 2024-09-15 12:20:55 |
#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; }