#include <iostream> using namespace std; #include <bits/stdc++.h> int main() { int n; cin>>n; string s; map<string,int>mp; vector<string>name(n);//记录输入的顺序 for(int i = 0; i < n; i++){ cin>>s; mp[s] = 0; name[i] = s...