提交时间:2023-01-21 19:51:10

运行 ID: 6322

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