Lottery Money
CodeChefOpen on judge ↗
Problem Description: Jitendra has won a lottery of K rupees. He wants to utilize this money optimally. He wants to travel different cities in consecutive order with help of money he won in lottery.For travelling every city, he has to pay some amount. He wants to travel as many number of cities he can travel with the available lottery money. Help Jitendra to find the maximum number of cities he
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