#include <iostream> #include <map> #include <string> #include <algorithm> using namespace std; string s; int main() { getline(cin, s); map<string, int> m; // 分割每个单词 并 存在map中 size_t left = 0, right = s.find(" "); while (right != string:...