1 条题解

  • 0
    @ 2025-10-21 23:24:32
    #include<bits/stdc++.h>
    
    using namespace std;
    
    int main(){
        float x,a,y,b;
        cin >> x >> a >> y >> b;
    
        //z 代表地球最多养活z亿人
        float z;
    
        //i 代表现有资源 ,j 代表新生增长资源速度
        float j;
        //float i;
        j = ( b * y - a * x ) / ( b - a );
        //i =  a * x - a * j;
    
        //其实z就等于j 为什么呢  不好理解就看单位 年*人/年=人
        z = j;
    
        cout << fixed << setprecision(2) << z;
    
        return 0;
    }
    
    • 1

    信息

    ID
    6641
    时间
    1000ms
    内存
    128MiB
    难度
    1
    标签
    (无)
    递交数
    183
    已通过
    38
    上传者