题意:输入一些单词,找出所有满足如下条件的单词:该单词不能通过字母重排,得到输入文本中的另外一个单词。在判断是否满足条件时,字母不分大小写,但在输出时应保留输入中的大小写,按字典序进行排列(所有大写字母在所有小写字母的前面)。
刘汝佳算法竞赛入门经典(第二版)P113
#include#include
本文共 631 字,大约阅读时间需要 2 分钟。
题意:输入一些单词,找出所有满足如下条件的单词:该单词不能通过字母重排,得到输入文本中的另外一个单词。在判断是否满足条件时,字母不分大小写,但在输出时应保留输入中的大小写,按字典序进行排列(所有大写字母在所有小写字母的前面)。
刘汝佳算法竞赛入门经典(第二版)P113
#include#include
转载于:https://www.cnblogs.com/Ritchie/p/5940152.html