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>
相關文章
相關標籤/搜索