UVA11014 Make a Crystal

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=1955 [PDF](https://uva.onlinejudge.org/external/110/p11014.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11014/07a8e3b12c22ab716b25ad3fbbfb57f3bbe80278.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11014/8db29aa7027a4da3fb14a3a0a15248cb2e7726f9.png)