40分求助
查看原帖
40分求助
1081864
Zoeli楼主2023/10/21 09:03
#include<bits/stdc++.h>
using namespace std;
int main(){	
	double n,m,a,b,ans=0;
	cin>>n>>m>>a>>b;
	ans=(n*a-m*b)/(a-b)*1.00;
	cout<<fixed<<setprecision(2)<<(double)ans<<endl;
	return 0;
}

2023/10/21 09:03
加载中...