#include <iostream> #include <vector> #include <map> using namespace std; int main() { string str; char ch1 = 0, ch2 = 0; while (cin >> str) { // 注意 while 处理多个 case map<char, int> mp; for (char it : str) { mp[it] = 1; ...