The Cheapest Flight
"We need to fly home as cheaply as possible so that more money is left for gifts. Aunt Lidia asked for different kinds of cheeses, and Vasia wanted a new toy car. I’ve been looking at the schedule for quite a while and I’m starting to think that some planes are flying in vain".
As the input you get the flight schedule as list, each element of which is the price of a direct flight between 2 cities (list of 3 elements...
You should be an authorized user in order to see the full description and start solving this mission.