51Nod 1095 Anigram单词 | Hash

  Input示例 5 add dad bad cad did 3 add cac dda Output示例 1 0 2 题意:一系列字符串,查询字符串S,能通过其他字符串交换串内字符顺序得到的字符串个数 思路:将每个字符串字符排序,map计数 #include <iostream> #include <string.h> #include <algorithm> #include <map>
相关文章
相关标签/搜索