Need help in a problem!

Hey guys!
I need help in this problem. I am not that good with graphs either so I apologize if its a basic graph question but I am not able to visualize what to do!! It would be great if someone can explain me how to solve it!

Also,I saw that the contest is live and it is not possible to check other participants’ solution. Well, at first I was unsure whether I should post this or not! I didn’t mean to break the rules of asking question while contest is live but since it is open for INOI practice, I think it is okay to ask question.

Correct me if I am wrong!
Thanks for the help :slight_smile:

1 Like

see this thread:

1 Like

Thanks mate :slight_smile: