UVA11342 Three-square

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=25&page=show_problem&problem=2317 [PDF](https://uva.onlinejudge.org/external/113/p11342.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11342/2638bade863f4b716656a112ab2f431b878eec24.png)

Input Format

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

Output Format

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