#include<iostream>
#include<unordered_map>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int t;
while (cin >> t, t)
{
unordered_map<string, int>mapp;
int c = 2 * t - 1;
string s;
while (c--)
{
cin >> s;
if (mapp.find(s)!=mapp.end())
{
mapp[s]++;
}
else
{
mapp[s] = 1;
}
}
for (auto i = mapp.begin(); i != mapp.end(); i++)
{
if (i->second % 2 == 1)
{
cout << i->first << endl;
}
}
mapp.clear();
}
}
HNU软件实训-缺席考试的是谁
于 2023-06-24 21:18:02 首次发布