#include #include #include using ldouble = long double; void solve() { ldouble a, b, c, d, e, f; std::cin >> a >> b >> c >> d >> e >> f; e -= f; c /= a, d /= a, e /= a; // x^2 + y^2 + cx + dx + e = 0 auto p = c / 2, q = d / 2; // (x+p)^2 + (y+q)^2 = r^2 auto r = std::sqrt(p * p + q * q - e); std::cout << std::fixed << std::setprecision(10) << r << "\n"; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }