UVA13189 Humbertov and the Triangular Spiral

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=871&page=show_problem&problem=5100 [PDF](https://uva.onlinejudge.org/external/131/p13189.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13189/54db95ca1cb59a96af096c2c09acd882a1a60569.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13189/4278bd2bc03e46bcf63ac5eb28c01b57335e6438.png)