UVA11406 Best Trap

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2401 [PDF](https://uva.onlinejudge.org/external/114/p11406.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11406/5d2bf930c19bb5d3d31859887505961dc3f59ecf.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11406/62fa5afcd84d03eb089ec67e842ca845439462cd.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11406/4fe83aa2597fbd45459e8926d01348f10600f8d0.png)