← All problemsSign in

Magical coins

Shubhadeep is an archaeologist. He found N Coins from an archaeological site. After several days of research, he found that the coins are magical. If we combine any two coins the value of the newly formed coin becomes double of the summation of those coins. For example, if we combine coins with value 3 and 4, the newly formed coin will have value of 14. Shubhadeep works for a secret organization

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