| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 86336 | bnu_fanmeijie | 地球人口承载力估计 | C++ | 通过 | 0 MS | 244 KB | 295 | 2026-03-31 16:01:03 |
#include <bits/stdc++.h> using namespace std; int main() { int x,a,y,b; float n; //为了输出保留小数点后两位,定义float n; cin >> x >> a >> y >> b; n = (b*y - a*x) / (b - a); printf("%.2lf",n); //cout << fixed << setprecision(2) << n; return 0; }