比赛 26暑假集训模拟赛1 评测结果 AAAAAAAAAA
题目名称 异或加密 最终得分 100
用户昵称 rzzakioi 运行时间 0.948 s
代码语言 C++ 内存使用 1.65 MiB
提交时间 2026-06-29 10:19:21
显示代码纯文本
#include<cstdio>
using namespace std;
int n;
int main(){
    freopen("XORcipher.in","r",stdin);
    freopen("XORcipher.out","w",stdout);
    scanf("%d",&n);
    int ans=0;
    for(int i=1;i<=n*2;i++){
        int x;
        scanf("%d",&x);
        ans^=x;
    }
    printf("%d",ans);
    return 0;
}