UVA11470 Square Sums

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2465 [PDF](https://uva.onlinejudge.org/external/114/p11470.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11470/fdd3ec25e6f235e293b3e88c6ccc24be8b9907b4.png)

Input Format

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

Output Format

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