#include using namespace std; typedef long long ll; typedef long double ld; #define rep(i,n) for (int i = 0; i < (n); ++i) templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> a >> b >> c >> d; double D=(a-c)*(a-c)-4*2*(b-d); if(D<0){ cout << "No" << endl; } else if(D==0){ cout << "Yes" << endl; } else{ double l=(-(a-c)-sqrt(D))/4,r=(-(a-c)+sqrt(D))/4; double fl=l*l+a*l+b,fr=r*r+a*r+b; cout << fixed << setprecision(10) << (fr-fl)/(r-l) << " " << (fr-fl)/(r-l)*(-l)+fl << endl; } }