Expense List
Chef has made a list for his monthly expenses. The list has $N$ expenses with index $1$ to $N$. The money spent on each expense depends upon the monthly income of Chef. - Chef spends $50\%$ of his total income on the expense with index $1$. - The money spent on the $i^{th}$ expense $(i>1)$ is equal to $50\%$ of the amount **remaining**, after paying for all expenses with indices **less than** $i$
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