← All problemsSign in

Pay the Debts

Problem description. A person has to pay K amount of its debt. The amount he will get back on giving an amount of Rs. x to the bank will be as per the value of the quadratic equation a*x^2 + b* x+c for that value x. Now he wants to pay all his debts so he wants to know the least non-negative value x (i.e. x>=0) that can help him getting amount >= K from the bank to pay his debts. Help him find t

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