| 比赛 | EYOI与SBOI开学欢乐赛3rd | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 异或加密 | 最终得分 | 100 |
| 用户昵称 | yrtiop | 运行时间 | 0.684 s |
| 代码语言 | C++ | 内存使用 | 2.87 MiB |
| 提交时间 | 2022-09-05 19:07:26 | ||
#include <bits/stdc++.h>
int n,x;
int main() {
freopen("XORcipher.in","r",stdin);
freopen("XORcipher.out","w",stdout);
scanf("%d",&n);
int ans = 0;
for(int i = 1;i <= n;++ i) {
scanf("%d",&x);
ans ^= x;
}
for(int i = 1;i <= n;++ i) {
scanf("%d",&x);
ans ^= x;
}
printf("%d",ans);
return 0;
}