#include<bits/stdc++.h> using namespace std; int main(){ float x,a,y,b; cin>>x>>a>>y>>b; cout<<fixed<<setprecision(2)<<(xa-yb)/(a-b); return 0; } //printf("%.3f\n",a);//C语言 //cout<<fixed<<setprecision(2)<<a;//C+

1 条评论

  • @ 2024-11-16 20:20:35
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        float x,a,y,b;
    	cin>>x>>a>>y>>b;
    	cout<<fixed<<setprecision(2)<<(x*a-y*b)/(a-b);
    return 0;
    }
    
    • 1

    信息

    ID
    458
    时间
    1000ms
    内存
    256MiB
    难度
    7
    标签
    递交数
    22
    已通过
    8
    上传者