UVA12428 Enemy at the Gates

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3859 [PDF](https://uva.onlinejudge.org/external/124/p12428.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12428/6baf115f8cc5f769ffe0b7334f2e6da1aff3c437.png)

Input Format

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

Output Format

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