This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
TASK DEFINITION: | |
There are street lights placed evenly every 20 meters on a straight road. | |
Most of the street lights are working and have the same illumination intencity. | |
Non-working street lights are provided as a list of their indexes. | |
If a street light is not working - its position can still be illuminated by neighboring lights. | |
Illumination is decreasing exponentially when the distance increases from a street light. | |
Please find an index of a street light, which has the lowest illumination. Its light bulb will be replaced. | |
Notes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
There are street lights placed evenly every 20 meters on a straight road. | |
Most of the street lights are working and have the same illumination intencity. | |
Non-working street lights are provided as a list of their indexes. | |
If a street light is not working - its position can still be illuminated by neighboring lights. | |
Illumination is decreasing exponentially when the distance increases from a street light. | |
Please find an index of a street light, which has the lowest illumination. Its light bulb will be replaced. | |
Notes: | |
- The road lenght can be from 0 to 2000000m. |