Token of Love
CodeChefOpen on judge ↗
Rahul has fallen in love with a girl. To impress her, he decided to give her a number of gifts. Each gift corresponds to some unit of token of love by his crush. But the problem is, to buy a gift he has to pay a certain amount of money. He has limited amount of money, out of which he has to get maximum unit of token of love from his crush.Rahul is weak in maths and hence help him to get maximum un
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