Maximum Light Up
Chef has allocated himself a budget of $P$ rupees to buy Diwali crackers. There are only $3$ types of crackers available in the market and each type of cracker can be bought any number of times. 1. Fuljhari, where each costs $a$ rupees 2. Anar, where each costs $b$ rupees 3. Chakri, where each costs $c$ rupees The crackers have the following interesting properties:- - A Fuljhari can be lit on it
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