UVA312 Crosswords (II)

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=248 [PDF](https://uva.onlinejudge.org/external/3/p312.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA312/eb2cf406ce65f2dad20483777bead9fb3d131885.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA312/4e17eb62433788f968b06e3d2e4b6282d8194651.png)

Output Format

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