Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
14140 | c292user1 | 地球人口承载力估计 | C++ | 通过 | 100 | 1 MS | 772 KB | 201 | 2021-07-10 18:46:29 |
#include <iostream> #include <cstdio> using namespace std; int main() { double x,a,y,b,z; cin >> x >> a >> y >> b; z = (b * y - a * x) / (b - a); printf("%.2f",z); return 0; }