Finding criminals
CodeChefOpen on judge ↗
You are a police man and there are two criminals hiding in a city with N streets numbered from 1 to N no one other than the criminals are in this town you have a device that you can ask him how many people are in the streets from L to R and it will answer you but you have only T questions can you find where are the criminals? Interaction You will ask the device by printing 0 L R to standard outp
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