Sponsored
Use these hints if you're stuck. Try solving on your own first.
The W is always less than or equal to the square root of the area, so we start searching at sqrt(area) till we find the result.
Solve with full IDE support and test cases