2018-12-30から1日間の記事一覧

December Lunchtime 2018 Find Best Path

https://www.codechef.com/LTIME67A/problems/BESTPATHThe distance array D[i] is filled with zero. Then start Bellman-ford, finally D[i] stores the shortest distance between a certain vertex and vertex i. If there are no negative cycles, we c…