提交时间:2021-07-10 18:46:29

运行 ID: 14140

#include <iostream> #include <cstdio> using namespace std; int main() { double x,a,y,b,z; cin >> x >> a >> y >> b; z = (b * y - a * x) / (b - a); printf("%.2f",z); return 0; }