Bring Positivity
CodeChefOpen on judge ↗
Keeping in mind the situation of coronavirus pandemic. Pappu decided to distribute presents to bring some positivity . But, this time he has with him a limited amount of gifts to give away. So, not everyone is lucky to get them but only the smart ones. He asks a simple question and who gets to the answer receives the present. He has $N$ bags with him, each o
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