This problem is in Contest(s) below:
Contest 1496:YC_最短路
Contest 1355:最靓的仔
Contest 1355:最靓的仔