UVA13270 Kid's Spiral Problem

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=878&page=show_problem&problem=5194 [PDF](https://uva.onlinejudge.org/external/132/p13270.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13270/cf45e4d22fe9597585672844a925c42648cea01d.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13270/41bec9f2a699f10757828bdc3073454ee3e1c6bd.png)

Output Format

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