King of Mirzapur
CodeChefOpen on judge ↗
As the gun distribution system in Mirzapur faces the problem of defective guns, Kaleen Bhaiya's position as King of Mirzapur is in danger. He tells Guddu and Bablu to look in into this problem, they make a plan to keep a check on the guns, but as they have more work to do so they are willing to tell their plan to you so you can help them. Their plan: Each gun will be assigned an integer ID. You
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