Find The Maximum
CodeChefOpen on judge ↗
Being very thin and skinny, Vinod wants to test his stamina. He takes a certain amount of protein (x) which allows him to run certain distance F(x) in Km. The distance he can run is given by a function F(x) = a*x^3 + b*x^2 + c*x + d . Vinod wants to know that for a certain range of protein [l,r] both included, what is the maximum distance he can run. Input First line will contain T, number of 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.
Sign in to chat with the tutor and save your progress.
Sign in to start