#include<iostream> using namespace std; int main() { int x, y, a, b; double z; cin >> x >> a >> y >> b; z=(y * b - x * a) / (b - a); cout.setf(ios::fixed); cout.precision(2); cout << z << endl; return 0; }
你给三连了吗
#include<iostream> using namespace std; int main() { int x, y, a, b; double z; cin >> x >> a >> y >> b; z=(y * b - x * a) / (b - a); cout.setf(ios::fixed); cout.precision(2); cout << z << endl; return 0; }
你给三连了吗