← All problemsSign in

Hope you get it

Chef created a new dish and he is willing to give the recipe for the same. The ingredients for the recipe are product of numbers in a pair. A pair consists of two integers say $X,Y$ then the ingredient is $X*Y$ and $X \ne Y$. After this chef mixes all the ingredients to make the dish. Here mixing the ingredients means summation of all ingredients present in the dish. Also the dish will be best

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