#include <iostream>
#include<array>
#include <algorithm>
using namespace std;
int main()
{
int n;
cin>>n;
int a[n];
for(int i=0;i<n;i++)
cin>>a[i];
sort(a,a+n);
for(int i=0;i<n;i+=2)
{
if(a[i]==a[i+1])
continue;
else
{
cout<<a[i];
break;
}
}
return 0;
}
No comments:
Post a Comment