UVA732 Anagrams by Stack

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA732/34d6cb69b6f2dae0c510d30a26a5ff9980fa2b35.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA732/4e00992f71f6dbcd8474ae042cab1c3ebee676f7.png)