Editorial for CCC '17 J3 - Exactly Electrical
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
For this problem, we make the observation that if the car can reach any intersection Y
, otherwise output N
.
Time Complexity:
Comments
My solution adheres to this principle but it still only gets 9/15
the number of charges left can be 0