UVA11914 An Amazing Race
Description
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3065
[PDF](https://uva.onlinejudge.org/external/119/p11914.pdf)

Input Format

Output Format
