UVA604 The Boggle Game

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=545 [PDF](https://uva.onlinejudge.org/external/6/p604.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA604/c2166294d03b191fd538bcf8127e837764edcb21.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA604/94d95e1c155b5a5057bf3a7e6f2f6202ec95fe3e.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA604/0707bb1e9b857c7ddb4a1ac73c6d599049447747.png)