2 条题解

  • 1
    @ 2025-3-15 12:18:37

    cout<<"注意计算就行";

    #include<bits/stdc++.h> 
    using namespace std;
    int main()
    {
        int x,a,y,b;
        double z;
        scanf("%d%d%d%d",&x,&a,&y,&b);
        z=(double)(b*y-a*x)/(b-a);
        printf("%.2lf",z);
        return 0;
    }
    
    • 0
      @ 2024-9-22 14:45:01

      #include #include using namespace std; int main(){ double x,a,y,b,n; cin>>x>>a>>y>>b; n=(yb-ax)/(b-a); cout<<setiosflags(ios::fixed)<<setprecision(2)<<n<<endl;

      return 0;
      

      }

      • 1

      信息

      ID
      5
      时间
      1000ms
      内存
      128MiB
      难度
      5
      标签
      (无)
      递交数
      34
      已通过
      16
      上传者