| 记录编号 | 575183 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 3716.异或加密 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.670 s | ||
| 提交时间 | 2022-09-07 18:54:33 | 内存使用 | 2.87 MiB | ||
#include <iostream>
#include <fstream>
using namespace std;
int main(void) {
ifstream fin("XORcipher.in");
ofstream fout("XORcipher.out");
int n;
fin >> n;
n <<= 1;
int ans = 0;
for(int tmp, i = 0; i < n; ++i) {
fin >> tmp;
ans ^= tmp;
}
fout << ans;
return 0;
}