UVA12053 Unbreakable Floor

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=242&page=show_problem&problem=3205 [PDF](https://uva.onlinejudge.org/external/120/p12053.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12053/ff0f544db098eea54b41d645d6dd2cb90dd85ece.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12053/3ae0e7fd55409897d21c4d5cefd11de17d32861d.png)