Musklon
CodeChefOpen on judge ↗
Toby got bored with his life on Earth and decided to go to Musklon - a newly established colony on Mars. But the thing is Toby had to clear his debt on Earth before going to Mars. He is in $K$ Dollars of debt. Toby knows his monthly expenses for the next $N$ months given in an array $A$. He gets $5000$ Dollars a month from his day job. After spending $A_{i}$ money in the $i^{th}$ month, the remai
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