| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 90449 | sh25_zhangyj | 地球人口承载力估计 | C++ | 通过 | 0 MS | 248 KB | 293 | 2026-06-05 15:43:25 |
#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; }