Fortis Fortuna Adiuvat

Your very close friend, John, also known as the Baba Yaga, is often on various missions to complete different tasks. For this, he needs to travel to different countries. For each of his missions, he has a peculiar ritual. Let’s say, he is going from country s to country t. He will start his journey from s, visit Continental Hotel, located at country x, and then go to country t. Even if the country t falls on his path from s to x, he will first go to x and then return to t. Consider this as a professional courtesy. To travel from one country to another, he needs to spend a few markers for different favors like mission equipment, food, travel cost, etc. A marker is a small round metal object indicating a debt between two individuals. Markers are witnessed and recognized. That means, if one person offers a marker to another and asks for a favor, the offered person must comply. It is evident from previous statements that these markers are very precious. For this reason, John wants to minimize the number of markers used.


This is a companion discussion topic for the original entry at https://toph.co/p/fortis-fortuna-adiuvat

why my code showing MLE https://paste.ubuntu.com/p/W89jJ9Xf2z/