Back to Cosmos

Problem Link:

code/online_challenges/src/codechef/J7/README.md

latest357 B
Original Source

Problem Link:

J7

Description

Johnny needs to make a rectangular box for his physics class project. He has bought P cm of wire and S cm2 of special paper. He would like to use all the wire (for the 12 edges) and paper (for the 6 sides) to make the box.

What is the largest volume of the box that Johnny can make?