提交时间:2024-09-28 18:58:26

运行 ID: 52244

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