← All problemsSign in

Million Dollar Man

Ronny is an industrialist running a firm DISCO. His total earning on $i$$th$ day is equal to sum of thrice the total earning made by the firm DISCO on previous day and four times the total earning made by the firm DISCO two days back. Your task is to compute total earning made by Ronny on $N$$th$ day. You are given $A$ and $B$ where $A$ denotes total earning made by Ronny on first day and $B$ deno

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