← All problemsSign in

Army and Packets

As we all know that there is a chance of war between India and Pakistan. Suppose in the future war begins and army chief has to distribute packets of explosives and each packet has a different number of explosives and every soldier must allocate at least one packet. Chief makes many groups. In each group, there are different numbers of soldiers. Chief has $N$ number of packets, Chief has to alloca

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start