What the Equation
CodeChefOpen on judge ↗
You are given the sum (S) of five numbers. Let numbers be v,w,x,y,z. Three new numbers namely a,b,c are formed from these numbers as follows: - $a = (vwz)^2 + 2vx(wz)^2$ - $b = (wxz)^2 + 2wy(xz)^2$ - $c = (xyz)^2 + 2vwxyz^2$, What is the maximum sum possible of a,b and c ? ###Input: - First-line will contain $T$, the number of test cases. Then the test cases follow. - Each test cas
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