Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
50845 张思存 地球人口承载力估计 C++ 解答错误 0 MS 252 KB 330 2024-09-13 22:34:51

Tests(0/1):


#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); cout<<(z); double value = z; std::string str = std::to_string(value); std::string result = str.substr(0, str.find('.') + 3); std::cout << result << std::endl; return 0; }


测评信息: