#shortest-paths
Practice
›
Codeforces Solutions
›
Bayan 2012-2013 Elimination Round (ACM ICPC Rules, English statements)
›
CF 241E - Flights
CF 241E - Flights Rating: 2600 Tags: graphs, shortest paths Solve time: 1m 54s Verified: yes Solution Problem Understanding We are given a directed acyclic graph of cities and one-way flights. Every flight initially takes 1 hour. We may independently change any flight duration to either 1 or 2 hours. The goal is to assign durations so that every possible path from city 1 to city n has exactly the...