UVA10827 Maximum sum on a torus

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1768 [PDF](https://uva.onlinejudge.org/external/108/p10827.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10827/09b857e3aa20b41d7cd3c253bdb671dfed30d7d2.png)

Input Format

N/A

Output Format

N/A