← All problemsSign in

Quadratic Functions

$f(x)$ and $g(x)$ are two quadratic polynomials: - $f(x) = Ax^2 + Bx + C$ - $g(x) = Dx^2 + Ex + F$ It is guaranteed that $f(x)$ and $g(x)$ do not intersect. That is, there is no real number $r$, such that $f(r) = g(r)$. You need to find a quadratic polynomial $h(x) = Px^2 + Qx + R$ such that the sum of areas under the curves $|f(x) - h(x)|$ and $|g(x) - h(x)|$ is minimized between integer points

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start