UVA12115 Nested Squares

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=243&page=show_problem&problem=3267 [PDF](https://uva.onlinejudge.org/external/121/p12115.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12115/0001ab5d7dd79ea3cef78e96f5b8bf0e28471ddb.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12115/764300d31b00c43a7c2996ee4a8a9ff1c8599380.png)

Output Format

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