FLOOD
CodeChefOpen on judge ↗
Chef's Chefland was badly hit by Flood, many people residing near the river side area lost their livelihood . Chef decided to bring some food for the people suffering ,he has total $P$ amount with him . when he visited the Rice store he found that there are $N$ different type of companies have different weight packet ($W$i,.....,$W$N) and each company have different price range with respect to
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