← All problemsSign in

Maximum Area

You are given an array $L$ of integers in input. You want to form a triangle by taking three integers from the array and considering them as the lengths of three sides of the triangle. Find the maximum area of the triangle that can be formed using the given array. If the maximum area is $A$ then print the value of $16A^2$. If no triangle can be formed from the given array, print 0. ### Input -

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