Editorial for DMOPC '18 Contest 6 P3 - Wish Upon a Star
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 YES
if there is at most 1 such edge, and NO
otherwise.
Time Complexity:
Let
For
Time Complexity:
Comments