UVA285 Crosswords

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=221 [PDF](https://uva.onlinejudge.org/external/2/p285.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA285/bbdde89957987c164bd77724a9ddd3f70bd0b998.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA285/26b54fc59e83ad69df29df4885407e8d87c1cb8c.png)