Тавсифи масъала
There are lamps located along a street at positions , each with a power level . The -th lamp lights up an area within the range when turned on. Initially, some lamps are turned on, and some are turned off. The initial state of the -th lamp is denoted by : if , the lamp is on; if , the lamp is off. The positions of the lamps are sorted in increasing order, i.e., for all .