Hi, I came across one question from codechef.

Click Here

Here, we are given P and S.

Let l, b, h be the length, breadth, height of the box.

we have these two inequalities

4*(l+b+h) <= P
2*(l

*b+b*h+h

*l) <= S*

We have to maximise the volume which is lb*h.

We have to maximise the volume which is l

We are also given that test cases will produce optimal solution.

Can any 1 please help me with it?