Comments

why the start time became 10 minutes later?

I used bfs,put the unused neighbours in the queue,and calc the answer when you meet a node which is not among the given $$$n$$$ points.

I used bfs and I got accepted