Avoiding Cameras - 2
CodeChefOpen on judge ↗
A team of robbers have entered the premises of the Bank of Chefland. The bank consists of a long corridor, with N cameras fitted along the corridor. Each camera has a field of view, i.e., ith camera has monitors all activity between coordinates Ci and Di. All coordinates are measured from one end of the corridor. The robbers want to understand the layout of the cameras. Specifically, they ask Q q
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