比赛 26暑假集训模拟赛1 评测结果 AAAAAAAAAA
题目名称 异或加密 最终得分 100
用户昵称 郑霁桓 运行时间 0.996 s
代码语言 C++ 内存使用 3.68 MiB
提交时间 2026-06-29 08:24:37
显示代码纯文本
#include<bits/stdc++.h>
using namespace std;
long long n,a,p;
int main(){
    freopen("XORcipher.in","r",stdin);
    freopen("XORcipher.out","w",stdout);
    ios::sync_with_stdio(false);
    cin.tie(0),cout.tie(0);
    cin>>n;
    n<<=1;
    for(int i=1;i<=n;i++) cin>>p,a^=p;
    cout<<a;
    return 0;
}