Peekay and Po
CodeChefOpen on judge ↗
Peekay is a shopkeeper. He lives in a village named sheonar. Po is another villager who has saved Peekay from getting kidnapped by "Maut Ka Saudagar", a local don. Peekay wants to thank Po for saving his life. He gives Po an offer to choose maximum W kg of mangoes from his market. There are n types of mangoes present in the market. Each type of mango has many pieces. A price p and weight w is ass
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