← All problemsSign in

Richest One

CodeMaster and Chef has bank balance M and N (Rupees) respectively. It's guaranteed that CodeMaster bank balance is smaller than or equal to his friend chef's bank balance. CodeMaster invests a lot in share market and his bank balance is tripled after every year, while chef's bank balance doubled after every year. After how many years will CodeMaster's bank balance become strictly equal to che

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