UVA12782 Magic Squares

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=823&page=show_problem&problem=4647 [PDF](https://uva.onlinejudge.org/external/127/p12782.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12782/6e7c1d6e1d0bb3befb9e5a089305c738da3d32a0.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12782/7c4f0169e66c02f7d9a8ffcbd3689c0670f77734.png)