| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 50845 | 张思存 | 地球人口承载力估计 | C++ | Wrong Answer | 0 MS | 252 KB | 330 | 2024-09-13 22:34:51 |
#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; }