UVA842 Crossword Puzzles

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=783 [PDF](https://uva.onlinejudge.org/external/8/p842.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA842/2295df60a402d378f397e5b77b454aab0f76e154.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA842/4677bc2b57ab007314e09b0f594d9204218d4174.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA842/0f29b6b98d872fd9eeac9cfa59f22e255defb7cd.png)