UVA11624 Fire!

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=78&page=show_problem&problem=2671 [PDF](https://uva.onlinejudge.org/external/116/p11624.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11624/2b659a28191dc6dee5d0db9fe00dae5a0bdf3506.png)

Input Format

N/A

Output Format

N/A