Lights for Lights OUT
CodeChefOpen on judge ↗
With the experience gained from Memento, now you plan on shooting a movie yourself. This one's gonna be a horror movie. It's a cliche of the horror genre where the lights go on and off. What good is a movie without the genre's cliches mixed in just right? So you plan a little different. You take out on the street rather than in a mansion. There is a street of length x whose positions are numbered
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