提交时间:2024-09-22 22:05:27

运行 ID: 51624

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