UVA159 Word Crosses

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=95 [PDF](https://uva.onlinejudge.org/external/1/p159.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA159/74ea4e39e6271289cfe709738e691765838a5dc9.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA159/4662b45d73f2bba11844f405caf56268e4f3b324.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA159/23e4ec647b1b5de9f8d57baa56cf8c649edd3fd5.png)