← All problemsSign in

Sale in Mirzapur

The problem with defective guns in Mirzapur is solved by Guddu and Bablu, but now more problems have arrived in the system. In the new system each gun has an integer ID, now anybody who needs to buy a gun from Guddu and Bablu has to tell them the integer ID of that gun, but people in Mirzapur only know the names of the guns in the form of a string $S$, So to get the ID of any gun they use the foll

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