#include #define p(s) cout<<(s)<>xa>>ya>>xb>>yb; double ans=(yb-(double)(yb-ya)/(xa+xb)*xb); p(ans); return 0; }