UVA900 Brick Wall Patterns

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=841 [PDF](https://uva.onlinejudge.org/external/9/p900.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA900/e32dddb241af59819aceb173fd63a19ce2e3d316.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA900/2f99afd7705f2e4b94732da545117f29b5fd3231.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA900/2fda99cfbbf42d7b93e788c7d821e59b68f37d07.png)