4 条题解

  • 2
    #include<iostream>
    #include<iomanip>
    using namespace std;
    int main()
    {
        int x,a,y,b;
        double z;
        cin>>x>>a>>y>>b;
        z=(y*b-x*a)/(b-a);
        cout<<setiosflags(ios::fixed)<<setprecision(2);
        cout<<z<<endl;
        return 0;
    }
    

    制作不易,点个赞再拿走嘛

    • 0
      @ 2025-3-5 16:26:08

      #include<bits/stdc++.h> using namespace std; int main(){ int x,a,y,b; float n; cin >> x >> a >> y >> b; n= (by - ax) / (b - a); cout << fixed << setprecision(2) << n; return 0; }

      • -2
        @ 2025-3-5 16:25:13

        #include<bits/stdc++.h> using namespace std; int main(){ int x,a,y,b; float n; cin >> x >> a >> y >> b ; n = (by - ax) / (b-a); printf("%.2lf",n); return 0; }

        • -2
          @ 2025-2-28 16:31:09

          #include<bits/stdc++.h> using namespace std;

          int main() { int x, a, y, b; double z; cin >> x >> a >> y >> b; z = (1.0 * x * a - y * b) / (1.0 * a - b); printf("%.2w", z); return 0; }

          • @ 2025-2-28 17:06:07

            ******你确定自己做的事对的?</u>

        • 1

        信息

        ID
        6
        时间
        1000ms
        内存
        256MiB
        难度
        1
        标签
        递交数
        670
        已通过
        68
        上传者