1001. 2 - 字符集集合運算

#include <iostream> #include <vector> #include <set> #include <algorithm> using namespace std; // 將字符串轉換爲字符集合的形式 string remove_similar_char(string str1){ set<char> s; for(auto &c:str1) s.insert(c
相關文章
相關標籤/搜索