Breaking Bad
CodeChefOpen on judge ↗
A gang of K robbers have broken into a jewellery shop having N jewelleries at night and there is nobody to stop the robbery. The robbers are intelligent and have planned that after the robbery is complete they will run separately and then meet later some day with their corresponding jewellery to distribute the amount equally because if by chance anyone gets caught then the remaining robbers can st
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