比赛 26暑假集训模拟赛1 评测结果 AAAAAAAAAA
题目名称 异或加密 最终得分 100
用户昵称 运行时间 0.944 s
代码语言 C++ 内存使用 3.68 MiB
提交时间 2026-06-29 12:26:30
显示代码纯文本
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define INT_MAX (int)(1e18)

int n;

inline int read(){
    int x=0,f=1;char ch=getchar();
    while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
    while(ch>='0'&&ch<='9')x=(x<<3)+(x<<1)+(ch^48),ch=getchar();
    return x*f;
}

void solve(){
    
}

signed main(){
    freopen("XORcipher.in","r",stdin);
    freopen("XORcipher.out","w",stdout);
    n=read();
    int ans=0;
    for(int i=1;i<=2*n;i++) ans^=read();
    cout<<ans<<"\n";
    return 0;
}