Google hashcode 2021 Approach

Please share your approach for google hashcode 2021 problem. The problem was quite interesting, I didn’t able to get that good score, but enjoyed it.
My approach was taking minimum path every time based on L value and than taking random value along with some constraints to get duration of light based on the path length.

how much did you score?

around 7 million

what’s your score?

7.8M