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

ll n,ans;

int main(){
	freopen("XORcipher.in","r",stdin);
	freopen("XORcipher.out","w",stdout);
	ios::sync_with_stdio(0);
	cin.tie(0);cout.tie(0);
	cin>>n;
	for (int i=1;i<=2*n;i++){
		ll x;
		cin>>x;
		ans^=x;
	}
	cout<<ans;
    return 0;
}