UVA12031 Summation of Four Squares

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=242&page=show_problem&problem=3182 [PDF](https://uva.onlinejudge.org/external/120/p12031.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12031/654ef4be4cb166b2315575169c75c4a6bfccaba6.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12031/9f4968196bb19e6327a602723f228d0f28d15bde.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12031/40e06f17ac145d947f150a9cee9ce3af80c3bfa8.png)