Seizure gone Wrong
CodeChefOpen on judge ↗
Pablo’s smugglers pack cocaine into packets. A box contains m such packets with unique packet ids. The box id printed on the box is the sum of the packet ids it contains. The Columbian National Police seizes one such truck full of boxes. However, n boxes have opened up and the packets are all mixed. As a guard that suffers from OCD, you want to arrange all the packets once again and put them in th
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