C++ Problem P1161: Turning On the Lights
Click the blue text Follow us P1161 Turning On the Lights Problem Description On an infinitely long road, there is a row of infinitely long streetlights, numbered as . Each light can only be in one of two states: on or off. Pressing the switch of a certain light will change its state. If it … Read more