代码

#include <iostream>
using namespace std;
int main()
{
    ios::sync_with_stdio(false);
    int n,x,res=0;
    cin>>n;
    for(int i=1;i<=n;i++)
    {
        cin>>x;
        res^=x;
    }
    cout<<res<<endl;
    return 0;
}
 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐