反片语 Ananagrams

题意翻译

题目大意 输入一些单词,找出所有满足如下条件的单词:该单词不能通过字母重排,得到输入文本的另外一个单词。在判断是否满足条件时,字母不分大小写,但在输出时应保留输入的大小写,按字典序排列。 翻译贡献者:很dalao的蒟蒻

题目描述

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=92 [PDF](https://uva.onlinejudge.org/external/1/p156.pdf) ![](https://cdn.luogu.org/upload/vjudge_pic/UVA156/dc6cdcbb36579acf2629ae204167ab408bdaa20f.png)

输入输出格式

输入格式


![](https://cdn.luogu.org/upload/vjudge_pic/UVA156/ec895ca45b112623bf0e495312ef5805c9c5a222.png)

输出格式


![](https://cdn.luogu.org/upload/vjudge_pic/UVA156/46b34b0a4275c645ab84982aea6e74168eb7cdb4.png)

输入输出样例

输入样例 #1

ladder came tape soon leader acme RIDE lone Dreis peat
ScAlE orb eye Rides dealer NotE derail LaCeS drIed
noel dire Disk mace Rob dries
#

输出样例 #1

Disk
NotE
derail
drIed
eye
ladder
soon