UVA630 Anagrams (II)

Description

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

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA630/98acd29b57f05a332b481bde4a7546c91913fb9f.png)