题目:
题解:
#include<iostream>
#include<map>
using namespace std;
int main()
{
map<int, int>mp;
int n;
cin >> n;
int key;
//初始化
while (n--)
{
cin >> key;
if (key % 2 == 1)
{
mp[key]++;
}
}
//范围for
for (auto [x, y] : mp)
{
if (y % 2 == 1)
{
cout << x;
return 0;
}
}
return 0;
}