← All problemsSign in

SAISHA AND HER LOVE FOR MATHEMATICS

$Saisha$ is studying $Mathematics$. Her teacher has given her an assignment. $N$ equations of lines $(f_i(x) = M_i * x + C_i)$ are given. There are two types of queries: - $type$ $1$ - Add the line $F(x) = M * x + C$ in the system of lines. - $type$ $2$ - Output the minimum $F_i(x)$ for a given $x$ value. You will be asked $Q$ queries. For each query of type 2, output $minim

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