UVA10538 Powerful Magic Squares

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=17&page=show_problem&problem=1479 [PDF](https://uva.onlinejudge.org/external/105/p10538.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10538/6bf5d5b679bc0225708086568cd3e510f4718049.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10538/75e874300e9e36e45f635cd09adb403c1bad27a7.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10538/15299d8c6a58431317bf1f30a05558e7da602668.png)