UVA12284 Digital Matrix

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=244&page=show_problem&problem=3436 [PDF](https://uva.onlinejudge.org/external/122/p12284.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12284/fdb5bdefec3ea25c36bd1d83831613d76470cd49.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12284/7310c12c1592116e1290cc130bbaf0dee73b66ee.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12284/3903b1e4f523d430f7ce74e394ae830b0db4be53.png)