#include<bits/stdc++.h>
using namespace std;
long long n,b;
long long q[1000000000];
int main(){
cin>>n;
for(int i=0;i<n;i++){
long long ai;
cin>>ai;
q[ai]++;
if(ai>b) b=ai;
}
for(int i=0;i<=b;i++){
if(q[i]%2==1) cout<<i;
}
}
=========分割线==========
输出(不会用图床,所以会打字出来了)
9
2 2 1 3 3 3 2 3 1
2 0
2 2
1 2
3 2
3 3
3 3
2 3
3 3
1 3
2
Process exited after 0.9163 seconds with return value 0
请按任意键继续. . .