Magic Coin
CodeChefOpen on judge ↗
Problem description. Suyash is a great magician and always helps the poor with his magic power in his town. One day a poor kid arrives in his door with 'N' coins.The poor kid was afraid that he would not survive long with 'N' coin so he asks Suyash for help. Suyash casts a spell in that 'N' coins.Because of the spell every day each of the coin produces three times of its identicals.For example, s
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