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
相关文章
相关标签/搜索