,所以偶数个相同的数异或起来是零,奇数个相同的数异或起来是自身喵~所以答案就是所有数异或起来喵~
#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int Read() {
int res = 0;
char c = getchar();
while (!isdigit(c)) {
c = getchar_unlocked();
}
while (isdigit(c)) {
res = res * 10 + (c - '0');
c = getchar_unlocked();
}
return res;
}
void Solve() {
int res = 0;
int n = Read();
while (n--) {
res ^= Read();
}
cout << res;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
Solve();
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号