UVA10855 Rotated square

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1796 [PDF](https://uva.onlinejudge.org/external/108/p10855.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10855/28deed2d8d7ba5594a004b92c915f7ff5a49502e.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10855/80576b4868ba2b2b9d0eaa78a8904550c07c5bca.png)