← All problemsSign in

MAGICAL WORLD

On a wonderful rainy day, a little champ was wandering in the street. He was so sad because he had no power to fight against the monster, meanwhile there was a magical rain with power-boosters, the value of each power booster is a positive number. The product of power boosters is a constant. Let us consider a1, a2, a3…..,an are the powers of the power-boosters a1*a2*a3….. *an =k. So help the cham

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