提交时间:2024-09-16 14:28:41

运行 ID: 50967

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