UVA655 Scrabble

Description

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

Input Format

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

Output Format

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