UVA768 Crossword

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=709 [PDF](https://uva.onlinejudge.org/external/7/p768.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA768/2aa3a6fb1079ab75259356aab3f7e72ca7bfbe71.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA768/6a3d5b0db0ff1b927502aa777cd2f3bbddfe0981.png)