UVA10264 The Most Potent Corner

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=14&page=show_problem&problem=1205 [PDF](https://uva.onlinejudge.org/external/102/p10264.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10264/9cad9128a69d0cd6200cf1db06f7aa760625361f.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10264/64ad2eabb6e7e02277046fd58bea99c6b9c6466f.png)

Output Format

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