比赛 | 位运算及及其应用题单 | 评测结果 | AAAAAAAAAA |
---|---|---|---|
题目名称 | 异或加密 | 最终得分 | 100 |
用户昵称 | 李金泽 | 运行时间 | 0.965 s |
代码语言 | C++ | 内存使用 | 1.56 MiB |
提交时间 | 2025-01-25 14:27:54 | ||
#include<cstdio> 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<=n*2;i++)scanf("%d",&x),ans^=x; printf("%d",ans); return 0; }