This problem is in Contest(s) below:
Contest 1496:YC_最短路
Contest 1009:并查集,最短路队内测试及Spfa
Contest 1336:最短路径问题
Contest 1495:最短路径问题
Contest 1441:YC-NOIP普及