#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define INF (1<<29) #define rep(i,n) for(int i=0;i<(int)(n);i++) #define all(v) v.begin(),v.end() #define uniq(v) v.erase(unique(all(v)),v.end()) #define indexOf(v,x) (find(all(v),x)-v.begin()) double xa, ya, xb, yb; double calc(double y) { return sqrt(xa*xa + (ya - y)*(ya - y)) + sqrt(xb*xb + (yb - y)*(yb - y)); } int main() { ios::sync_with_stdio(0); cin.tie(0); cin >> xa >> ya >> xb >> yb; double ymin=0, ymax=1000; rep(i,10000000) { double a, b; a = (ymin * 2 + ymax) / 3; b = (ymin + ymax * 2) / 3; if (calc(a)