UVA11453 Traveling fishmonger

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2448 [PDF](https://uva.onlinejudge.org/external/114/p11453.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11453/71526b84cff16be606268c1f76a471c3cc9c03dd.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11453/e483683bd79fc54fd640320e03c79483407930f3.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11453/a03c0237c12a11de2195022048b77fd49e1957fd.png)