其他分享
首页 > 其他分享> > POJ 3259 Wormholes(BellmanFord)

POJ 3259 Wormholes(BellmanFord)

作者:互联网

Description:

While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that delivers you to its destination at a time that is BEFORE you entered the wormhole! Each of FJ’s farms comprises N (1 ≤ N ≤ 500) fields conveniently numbered 1…N, M (1 ≤ M ≤ 2500) paths, and W (1 ≤ W ≤ 200) wormholes.

As FJ is an avid time-traveling fan, he wants to do the following: start at some field, travel through some paths and wormholes, and return to the starting field a time before his initial departure. Perhaps he will be able to meet himself

标签:3259,ch,dist,BellmanFord,int,read,cost,POJ,include
来源: https://blog.csdn.net/Tony5t4rk/article/details/81102074