记录编号 598568 评测结果 AAAAAAAAAA
题目名称 异或加密 最终得分 100
用户昵称 GravatarAsher 是否通过 通过
代码语言 C++ 运行时间 0.960 s
提交时间 2025-01-25 17:00:28 内存使用 3.50 MiB
显示代码纯文本
#include<bits/stdc++.h>
using namespace std;
int n, x, ans;
int main()
{
    freopen("XORcipher.in","r",stdin);
    freopen("XORcipher.out","w",stdout);
    scanf("%d", &n);
    for(int i = 1;i <= 2 * n; i++)
    {
        scanf("%d", &x);
        ans ^= x;
    }
    printf("%d", ans);
    return 0;
}